Are there alternative methods to achieve smooth transitions in PHP that are not limited to Internet Explorer?

Smooth transitions in PHP can be achieved using CSS animations or JavaScript libraries like jQuery. These methods are not limited to Internet Explorer and provide a more consistent experience across different browsers.

<!DOCTYPE html>
<html>
<head>
    <style>
        .transition {
            transition: all 0.3s ease;
        }
    </style>
</head>
<body>
    <div class="transition" style="background-color: red; width: 100px; height: 100px;"></div>
    <button onclick="document.querySelector('.transition').style.backgroundColor = 'blue';">Change Color</button>
</body>
</html>