🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

Lock Scroll is a super tiny jQuery plugin which allows you to disable / enable scrolling behaviors (vertical, horizontal or both) on a scrollable area.

scrolling

Documentation

jQuery - lockscroll

The lockstate is jQuery plugin that provides you to lock or unlock scrolling of elements.

Usage

Lock scroll.

$('#element').lockscroll(true);

Lock vertical scroll.

$('#element').lockscroll(true, 'vertical');

Lock horizontal scroll.

$('#element').lockscroll(true, 'horizontal');

Unlock scroll.

$('#element').lockscroll(false);

You May Also Like