0.0.7 • Published 5 years ago

aos-animations v0.0.7

Weekly downloads
10
License
MIT
Repository
-
Last release
5 years ago

AOS-Animations 🦄

Some nice animations to use with AOS.

How to use

  1. Install AOS following their instructions (https://github.com/michalsnik/aos).

  2. Install our package with:

yarn add aos-animations or npm i --save aos-animations

  1. Add css and js files to your html file:
<link rel="stylesheet" href="node_modules/aos-animations/dist/animations.min.css">

...

<script src="node_modules/aos-animations/dist/animations.min.js"></script>

or import to your js file:

import 'aos-animations/dist/animations.min.css';
import 'aos-animations/dist/animations.min.js';
  1. Start using!

Example usage:

You will need to add the data-aos attribute to the element you want to animate and then specify the animation you would like to use. Our animations support all the configurations you can do with AOS such as changing delay, easing and duration (more here).

Example:

<div data-aos="tr-lr">Revealing text from left to right!</div>

Example with some tweekings:

<div 
  data-aos="tr-lr"
  data-aos-offset="200"
  data-aos-delay="50"
  data-aos-duration="1000"
  data-aos-easing="ease-in-out"
>Revealing text from left to right!</div>

Animations:

Animationdata-aos
Text reveal from left to righttr-lr
Text reveal from bottom to toptr-bt
Text reveal from top to bottomtr-tb
Fade infi
Fade in upfi-u
Fade in downfi-d
Fade in leftfi-l
Fade in rightfi-r
0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago