DEV Community

Carlos Caballero for Angular

Posted on • Updated on • Originally published at

Angular + Animate.css in Five Easy Steps

Angular + Animate.css in Five Easy Steps

A step-by-step angular tutorial

Animate.css is a cross-browser library
of CSS animations that is incredibly easy to use.

In this piece, I am going to show you how to configure Animate.css to be used in
Angular in only five steps.

Step 1: Init Your Project

If you are thinking about using Animate.css in your Angular project, you
probably have an initialized project already. However, for this tutorial, let’s
start our project from scratch.

Step 2. Install Animate.css

Install animate.css.

Step 3. Include Animate.css

There are several ways to include Animate.css in our project:

  • Open angular.json and insert a new entry into the styles array:

  • Open styles.css and insert a new entry into the file:

Step 4. Add the Animated CSS Class

Open your template’s component and add the animated CSS class into any of the
HTML elements:

Step 5. Run Your App!

Run your app:

More, More, and More…

The GitHub branch of this post is

Originally published at

Top comments (3)

rudolfolah profile image
Rudolf Olah

how does this interact with Angular's built-in animation library?

carlillo profile image
Carlos Caballero

Hi Rudolf,

This technique doesn't interact with Angular's animation library.

This is a easy way to include Animate.css which is a popular library in CSS to build animation.


ggenya132 profile image
Eugene Vedensky

Pretty convenient with the import statement. I'm curious, though, is there any way to query for animations you'll only be using rather than importing the entire lib?