Applying Built-in Animations with w3-animate-* in W3.CSS
W3.CSS provides you with many built-in animation classes for your webpage content elements in HTML website webpage. You use these animation classes to apply simple and attractive commercial animations to your webpage content elements. The animations you use help to make your website more commercial, interactive and dynamic. You can improve the web visitor user experience by using these animations. Where any beginner web user can easily apply the animation effect code in W3.CSS to the webpage.

So let’s apply animation effects using w3-animate-* class from W3.CSS in HTML webpage.
Overview of W3.CSS available animations.
W3.CSS provides you with many built-in animation classes to make the content information in your existing HTML website webpage attractive and commercial. You can apply animation on your desired webpage website content element.
Here are some of the most commonly used W3.CSS animation classes.
- w3-animate-top – This animates the webpage content element from the top direction of the W3.CSS screen in an HTML website webpage.
- w3-animate-bottom – This animates the webpage content element from the bottom direction of the W3.CSS screen in an HTML website webpage.
- w3-animate-left – This animates the webpage content element from the left direction of the W3.CSS screen in an HTML website webpage.
- w3-animate-right – This HTML website webpage animates the W3.CSS webpage content element from the right direction of the screen.
- w3-animate-opacity – This HTML website webpage animates the W3.CSS webpage content and applies opacity effect.
- w3-animate-zoom – This HTML website webpage applies zooming animation effect to the W3.CSS webpage content. Here the zoom animation previews the webpage element zooming in and out.
- w3-animate-fade – This HTML website webpage previews the W3.CSS webpage content element fading in and out.
- w3-animate-slide – This HTML website webpage moves the W3.CSS webpage content element sliding from left to right direction.
- w3-animate-spin – This rotates a webpage element with a spinning effect in W3.CSS webpage content in an HTML website webpage.
You can apply these classes to any HTML content element.
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title>Let Tray Some Multiple w3.css Button Animations Example</title>
<link rel=”stylesheet” href=”https://www.w3schools.com/w3css/4/w3.css”>
</head>
<body>
<div class=”w3-container w3-margin-top”>
<h1 class=”w3-animate-left”><center>Display W3.css Left Button With Animate </center></h1>
<h2 class=”w3-animate-right”><center>Display W3.css Right Button With Animate </center></h2>
<button class=”w3-button w3-animate-zoom w3-purple w3-margin-top”><center>Zoom Animate Button</center></button>
<button class=”w3-button w3-animate-top w3-red w3-margin-top”><center> Animate Top Button</center></button>
<button class=”w3-button w3-animate-bottom w3-blue w3-margin-top”><center> Animate Bottom Button</center></button>
<button class=”w3-button w3-animate-left w3-green w3-margin-top”><center>Animate Left Button</center></button>
<button class=”w3-button w3-animate-right w3-yellow w3-margin-top”><center> Animate Right Button</center></button>
<button class=”w3-button w3-animate-slide w3-orange w3-margin-top”><center>Slide Animate Button</center></button>
<button class=”w3-button w3-w3-animate-spin w3-pink w3-margin-top”><center>Spin Animate Button</center></button>
</div>
</body>
</html>
Basic use of animations in W3.CSS webpage
You can apply W3.CSS w3-animate-* class directly to any webpage content element in your existing HTML website webpage which you want to animate manually in your webpage website.
Here you get an example, in which you will know how to use W3.CSS animation in a webpage.
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title>Let Tray Simple Animate W3.CSS Example</title>
<link rel=”stylesheet” href=”https://www.w3schools.com/w3css/4/w3.css”>
</head>
<body>
<div class=”w3-container”>
<h1 class=”w3-animate-opacity”><center>Simple Animated Webpage Element Example</center></h1>
<p class=”w3-animate-opacity w3-large”><center>It Used To Display Text With Opacity Effect</center></p>
<div class=”w3-button w3-animate-bottom w3-green w3-padding-large”>Bottom Animate Button</div>
</div>
<div>
<br>
<div class=”w3-button w3-animate-top w3-blue w3-padding-large”>Top Animate Button</div>
</div>
</body>
</html>
Animate element example with w3-animate-opacity.
W3.CSS w3-animate-opacity explanation.
- w3-animate-opacity – This applies a fade-in effect to a W3.CSS element in an HTML website webpage where it gradually moves from its animate opacity of 0 to 1 position in the webpage.
- w3-animate-top – This animates a W3.CSS element in an HTML website webpage from the top of the screen to its final position.
Combining W3.CSS animations with other elements.
You can create more dynamic webpage behavior by combining W3.CSS animations in your active HTML website webpage with other tags or elements, such as form buttons, div blocks, or webpage images.
Example of using multiple animations in an existing webpage.
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title>Let Tray Multiple w3.css Animations</title>
<link rel=”stylesheet” href=”https://www.w3schools.com/w3css/4/w3.css”>
</head>
<body>
<div class=”w3-container w3-margin-top”>
<h1 class=”w3-animate-left”><center>Display Heading 1 With W3.css Animate </center></h1>
<p class=”w3-animate-right”><center>Let Tray Right Animation In Simple Web Page</center> </p>
<button class=”w3-button w3-animate-zoom w3-purple w3-margin-top”><center>Zoom Animate Button</center></button>
<img src=”https://cdn.pixabay.com/photo/2017/04/23/19/30/earth-2254769_1280.jpg” class=”w3-animate-spin w3-margin-top” heigt=200 width=200 alt=”Spinning Image”>
</div>
</body>
</html>
W3.CSS animation explanation.
- w3-animate-left – This applies a fade-in effect to a W3.CSS element in your active HTML website webpage where it gradually moves from its animate opacity of 0 to the final position in the webpage.
Combining W3.CSS animations with other elements.
You can create more dynamic webpage behavior by combining W3.CSS animations in your active HTML website webpage with other tags or elements, such as form buttons, div blocks, or webpage images.
W3.CSS animation explanation.
- w3-animate-left – This applies a fade-in effect to a W3.CSS title screen animate in the left direction in your active HTML website webpage.
- w3-animate-bottom – You can animate W3.CSS content object paragraph from bottom direction of screen in your active HTML website webpage.
- w3-animate-zoom – You can grow and shrink button zooming effect in W3.CSS in your active HTML website webpage.
- w3-animate-spin – You can continuously spin W3.CSS element object image in your active HTML website webpage.