jQuery Plugin To Fade In Elements When Scrolling Down - FadeInScroll

jQuery Plugin To Fade In Elements When Scrolling Down - FadeInScroll
File Size: 3.01 KB
Views Total:
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

FadeInScroll is a minimal jQuery plugin that applies a fade-in animation to your Html elements when they're scrolled into view, similar to the lazy load effect.

How to use it:

1. Load the jQuery FadeInScroll plugin after loading jQuery JavaScript library.

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="js/fadeInScroll.jQuery.js"></script>

2. Call the plugin on the target DOM elements and we're done.

$('SELECTOR').fadeInScroll();

3. The option to specify the distance between the browser top scroll and the next element.

$('SELECTOR').fadeInScroll({
minDistance:  75 * $(window).height() / 100
});

This awesome jQuery plugin is developed by mgelves. For more Advanced Usages, please check the demo page or visit the official website.