What is animate.css?
animate.css is a popular library for CSS animations. It provides a collection of pre-defined animations that can be easily applied to elements in a web page. The library is designed to be simple to use and integrates well with other web technologies.
What are animate.css's main functionalities?
Basic Animations
This feature allows you to apply basic animations like bounce, fade, and slide to HTML elements. The code sample demonstrates how to include the animate.css library and apply the 'bounce' animation to a div element.
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" />
<div class="animate__animated animate__bounce">An animated element</div>
Attention Seekers
Attention seekers are animations designed to grab the user's attention, such as shake, wobble, and jello. The code sample shows how to apply the 'shakeX' animation to a div element.
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" />
<div class="animate__animated animate__shakeX">An animated element</div>
Specials
Special animations include more complex effects like hinge, rollIn, and rollOut. The code sample demonstrates how to apply the 'hinge' animation to a div element.
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" />
<div class="animate__animated animate__hinge">An animated element</div>
Other packages similar to animate.css
aos
AOS (Animate On Scroll) is a library that allows you to animate elements as you scroll down, and up. It provides a variety of animations and is easy to integrate. Compared to animate.css, AOS is more focused on scroll-based animations.
wowjs
WOW.js is a JavaScript library that reveals animations when you scroll. It works well with animate.css but can also be used independently. WOW.js is similar to AOS but offers more control over the timing and triggering of animations.
velocity-animate
Velocity is a fast and feature-rich JavaScript animation engine. It combines the best of jQuery and CSS transitions and is designed for performance. Unlike animate.css, Velocity provides more granular control over animations and is suitable for more complex animation sequences.
Animate.css
If you need the old docs - v3.x.x and under - you can find it here.
Just-add-water CSS animation
Installation
Install with npm:
npm install animate.css --save
Install with yarn:
yarn add animate.css
Getting started
You can find the Animate.css documentation on the website.
Accessibility
Animate.css supports the prefers-reduced-motion
media query so that users with motion sensitivity can opt out of animations. On supported platforms (currently all the majors browsers and OS), users can select "reduce motion" on their operating system preferences and it will turn off CSS transitions for them without any further work required.
Core team
License
Animate.css is licensed under the MIT license. https://opensource.org/licenses/MIT
Code of Conduct
This project and everyone participating in it is governed by the Contributor Covenant Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to callmeelton@gmail.com.
Contributing
Pull requests are the way to go here. We only have two rules for submitting a pull request: match the naming convention (camelCase, categorised [fades, bounces, etc]) and let us see a demo of submitted animations in a pen. That last one is important.