jQuery Plugin To Check An Element Is Fully Scrolled Into View - inviewfull
File Size: | 5.79 KB |
---|---|
Views Total: | 345 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |
inviewfull is a jQuery plugin that attaches a 'inviewfull' for a specified element to check if it is completely scrolled into view.
How to use it:
1. Load the 'jquery.inviewfull.js' script after you've loaded jQuery library.
<script src="//code.jquery.com/jquery.min.js"></script> <script src="jquery.inviewfull.js"></script>
2. Attach the 'inviewfull' event to a specific element as follow. In this case, the plugin will return 'true' or 'false' based on the current scroll position.
$('.element').on('inviewfull', function(event, isInView){ alert(isInView); });
This awesome jQuery plugin is developed by biosonic. For more Advanced Usages, please check the demo page or visit the official website.