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
Step 3. Include Animate.css
There are several ways to include Animate.css in our project:
angular.jsonand insert a new entry into the styles array:
styles.cssand 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
Step 5. Run Your App!
Run your app:
More, More, and More…
The GitHub branch of this post is
Originally published at https://carloscaballero.io
Top comments (3)
how does this interact with Angular's built-in animation library?
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.
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?