jQuery.ScrollTo will allow the developer to animate and move the viewport anywhere he needs it.
The plugin is very easy to use, can work with the page's body or with smaller, overflowed containers.
To animate the user's view, multiple methods are provided. This can be done by giving its position on the screen using numbers, by giving it a DOM element to animate to, a set of x/y coordinates, or using percentages of the element's total scrollable distance.
While these might seem complex, they are quite the opposite, and even lesser skilled developers and non-technical users will be able to use them.
They can also control the duration of the animation, if to use easing functions for smoother motions, add offsets to the original positions, or run the animation in parallel or using a queue.
jQuery.LocalScroll and jQuery.SerialScroll where evolved from this plugin.
Examples and usage instructions are included with the download package.
What is new in this release:
- Enhancement:
- Avoid animating a needless axis
- Feature:
- Implemented interrupt setting, if true will stop animating on user (manual) scroll
What is new in version 2.1.1:
- Enhancement:
- Avoid animating a needless axis
- Feature:
- Implemented interrupt setting, if true will stop animating on user (manual) scroll
What is new in version 1.4.13:
- Support for CommonJS / NPM added.
What is new in version 1.4.9:
- "offset" setting can now be a function as well.
What is new in version 1.4.8:
- Added support for the AMD JS definition.
What is new in version 1.4.6:
- Fixed first argument of onAfter and onAfterFirst was original target and should be "parsed" target.
What is new in version 1.4.5:
- Fixed passing a negative scroll value crashes.
What is new in version 1.4.4:
- Re-released as 1.4.4 to avoid issues with Bower.
What is new in version 1.4.2:
- Feature:
- The plugin support percentages as target ('50%' or {top:'50%', left:'45%'})
- Exposed the max() calculation as $.scrollTo.max
- Enhancement:
- Renamed $.fn.scrollable to $.fn._scrollable to avoid conflicts with other plugins
- Fix:
- Fixing max calculations for regular DOM elements
Requirements:
- JavaScript enabled on client side
- jQuery 1.4 or higher
Comments not found