Skip to content

An easy to use plugin to add nice reveal animation effects on your page elements on scroll

Notifications You must be signed in to change notification settings

infario/revealonscroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

revealonscroll

#RevealOnScroll An easy to use plugin to add nice reveal animation effects on your page elements on scroll

Demo

Usage

  1. call ros.animate.css in your header.

    <link href="css/ros.animate.css" />

    You may also use any animate.css version. In our file we have modified translate3d value to 20px to make it look smoother when you scroll

  2. call jquery.ros.js in your footer after jquery

    <script src="js/jquery.ros.js"></script>
  3. intiate ros on document ready or window load

    ros.init();
  4. Add data-ros="fadeIn"attribute with your desired animate.css effect to your html element

    <h1 data-ros="fadeIn"> Text to animate </h1>
  5. You can add more options with data-options attribute.

    <div data-ros="zoomIn" data-options="delay:300;duration:1000">
  6. Available Options:

      data-options="infinite:false;animationClass:'animated';delay: 0;duration: 1000;callback:;"
    
        		

How it Works

There are plenty of scroll animation plugins with their unique features. Our intention is to use minimal one to support predefined css animations that easy to configure. Technically our work is outcome of combined package of few jquery plugins.

  1. https://github.com/protonet/jquery.inview - to find an element is scrolled into view
  2. https://github.com/craigmdennis/animateCSS - dynamically apply animate.css animations
  3. https://gomakethings.com/setting-multiple-javascript-plugin-options-with-a-single-data-attribute - To pass animateCSS options combined in single attribute
  4. https://github.com/michalsnik/aos - the idea of using data attribute to trigger

ROS is developed by Infario

About

An easy to use plugin to add nice reveal animation effects on your page elements on scroll

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published