How flesler/jquery.scrollto works
jQuery.scrollTo is a small jQuery plugin that turns a requested target into bounded scroll positions and animates them. The main workflow supports element and window scrolling, multiple target formats, axis and offset options, and animation callbacks; a window shorthand delegates to the same plugin behavior. Position limits and scroll-property tween hooks are implemented in the same source file. The workflow is grounded in the README and the excerpted implementation; jQuery’s internal animation behavior is external.
Main entry points: jquery.scrollTo.js ScrollTo API
Components 7
Other components
- Plugin caller
- ScrollTo API
jquery.scrollTo.js - Target resolution
jquery.scrollTo.js - Scroll bounds
jquery.scrollTo.js - Scroll tween hooks
jquery.scrollTo.js - jQuery
- jQuery animation
Connections 7
- Plugin caller → ScrollTo API: requests scrolling
README.md - ScrollTo API → Target resolution: resolves target
jquery.scrollTo.js - ScrollTo API → Scroll bounds: gets maximum
jquery.scrollTo.js - ScrollTo API → jQuery animation: animates positions
jquery.scrollTo.js - ScrollTo API → Scroll tween hooks: registers hooks
jquery.scrollTo.js - jQuery animation → Scroll tween hooks: uses hooks
- ScrollTo API → jQuery: uses jQuery
jquery.scrollTo.js