Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sirodiaz/scroll-animate

A jQuery plugin that animate elements with the scroll event using CSS3 animations
https://github.com/sirodiaz/scroll-animate

animation css css3-animations data-animation jquery

Last synced: 10 days ago
JSON representation

A jQuery plugin that animate elements with the scroll event using CSS3 animations

Awesome Lists containing this project

README

        

# scroll-animate
A jQuery plugin that animate elements with the scroll event using CSS3 animations

## Usage

Include your CSS animation classes in your .css file. For example you can use
**animate.css** as animation library.

```html

```

Include jQuery and the scroll-animate at the end of the body tag and initialize the plugin
for every data-animate elements.

```html


Titulo uno




Titulo uno





Titulo uno


Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nostrum doloremque ratione, voluptates quae sint nam aliquam explicabo dolore fugiat earum eveniet temporibus quasi voluptatem, cumque molestiae, aspernatur qui ullam autem?



$('[data-animate]').scrollAnimate({startAnimation: 'animated'});

```

Use **data-animate="animationName"** to select the animation or animations that you
want to be execute.
The only one property that you can set in settings is *startAnimation* that is by default
*animated*(from animate.css) and defines the CSS class that will start the animation.