Giter Club home page Giter Club logo

angular-animate.css's Introduction

Originally from carloscaballero.io blog.

Animate.css is a cross-browser library of CSS animations. As easy to use as an easy thing.

In this post I am going to show you how to configure Animate.css to be used in angular in only 5-1 steps.

Peek-2019-07-02-15-29

Step 1 (or 0). 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 with our project from scratch.

ng new angular-animate
cd angular-animate

Step 2. Install animate.css

Install animate.css

  npm install animate.css

Step 3. Include animate.css

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

  1. Open angular.json and insert a new entry into the styles array:
      "styles": [
            "node_modules/animate.css/animate.min.css",
            "styles.css",
       ],
  1. Open styles.scss and insert a new entry into the file:
@import '~animate.css/animate.min';

Step 4. Add animated CSS Class

Open your template's component and add the animated CSS class in any of the html elements:

<div style="text-align:center" class="animated flip infinite">
 content
</div>
<h2>Here are some links to help you start:</h2>
<ul class="animated fadeIn infinite">
 content
</ul>

<router-outlet></router-outlet>

Step 5. Run your app!

Run your app:

ng serve

More, More and More...

angular-animate.css's People

Contributors

caballerog avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.