Simple Versatile Sticky Element Plugin For jQuery scroll follow - Download Simple & Versatile Sticky Element Plugin For jQuery - scroll-follow

Download Simple & Versatile Sticky Element Plugin For jQuery – scroll-follow

Posted on

This time I will share jQuery Plugin and tutorial about Simple & Versatile Sticky Element Plugin For jQuery – scroll-follow, hope it will help you in programming stack.

Simple Versatile Sticky Element Plugin For jQuery scroll follow - Download Simple & Versatile Sticky Element Plugin For jQuery - scroll-follow
File Size: 361 KB
Views Total: 1167
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

scroll-follow is a simple yet highly customizable and mobile-friendly jQuery plugin to create sticky elements that follow as you scroll down the page. Ideal for sticky navigation, fixed sidebar and more.

Basic usage:

1. Load the main JavaScript file jquery.simple-scroll-follow.js after jQuery library and we’re ready to go.

1 <script src="//code.jquery.com/jquery-3.2.1.slim.min.js"></script>
2 <script src="jquery.simple-scroll-follow.js"></script>

2. The JavaScript to make your sidebar sticky on vertical page scrolling.

1 $('.sidebar').simple<a href="https://www.jqueryscript.net/tags.php?/Scroll/">Scroll</a>Follow();

3. The JavaScript to make your sidebar sticky within a specific container.

1 $('.sidebar').simpleScrollFollow({
2   limit_elem: 'article'
3 });

4. Disable the ‘sticky’ functionality when the screen size is less than 992px.

1 $('.sidebar').simpleScrollFollow({
2   min_width: 992
3 });

5. Enable/disable the ‘sticky’ functionality:

1 // enable
2 $('.sidebar').simpleScrollFollow('setEnabled', true);
3  
4 // disable
5 $('.sidebar').simpleScrollFollow('setEnabled', false);

Changelog:

2018-08-12

  • v3.1.2: Bugfix

2017-05-14

  • v3.1.0

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

source : jquery.net