Angular + Animate.css in Five Easy Steps

Carlos Caballero - Aug 1 '19 - - Dev Community

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
https://github.com/Caballerog/angular-animate.css


Originally published at https://carloscaballero.io

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .