jQuery Mouse Wheel Plugin adds cross-browser mouse wheel support with delta normalization In order to use the plugin, you only need to associate the mouse wheel event with an element.
It also provides two helper methods called mouse wheel that work just like the other event help methods in jQuery.
The event object is updated with normalized deltaX and deltaY properties. In addition, there is a new property on the event object called deltaFactor. Multiply deltaFactor by deltaX or deltaY to get the scroll distance reported by the browser.
The official jQuery mousewheel plugin that adds cross-browser mouse wheel support for your web projects. It’s been used for many years in a variety of jQuery plugins, websites, and web applications.
scroll div horizontally with mouse wheel, mouse wheel scroll jquery example, scroll horizontally with mouse wheel, scroll page vertically with mouse wheel
How to make use of it:
1. Include jQuery Library and MouseWheel.js.
<script src="jquery.min.js"></script> <script src="jquery.mousewheel.js"></script>
2. Bind the “mousewheel” occasion to a component.
<div id="demo"></demo>
3. An instance of utilizing each the bind and helper technique syntax.
// using bind $('#demo').bind('mousewheel', function(event, delta, deltaX, deltaY) { console.log(delta, deltaX, deltaY); }); // using the event helper $('#demo').mousewheel(function(event, delta, deltaX, deltaY) { console.log(delta, deltaX, deltaY); });
jQuery Plugin for Mouse Wheel Support, jQuery Mouse Wheel Plugin/Github, jquery mousewheel cdn, jquery mousewheel npm, jquery mousewheel demo
See Demo And Download
Official Website(jquery): Click Here
This superior jQuery/javascript plugin is developed by jquery. For extra Advanced Usages, please go to the official website.