diTii.com Digital News Hub

Sign up with your email address to be the first to know about latest news and more.

I agree to have my personal information transfered to MailChimp (more information)


jQuery ScrollTo Plugin

Ariel Flesler has created a nice little jQuery plugin scroller called ScrollTo, that lets you scroll with many configuration options:

  • Axes to be scrolled, ‘x’, ‘y’, ‘xy’ or ‘yx’.
  • Animation length (or by default, no animation)
  • Easing method
  • Whether to take in account, the margin of the target element
  • If both axes are chosen, whether to animate together, or queue the animations.
  • The possibility to add/deduct from the end position a defined amount of pixels.
  • If queing, a callback function to be called after the first scrolling.
  • A callback function to be called after the whole scrolling ended.

For example:

$.scrollTo( '#options-examples', 800, {easing:'elasout'} );

jQuery, Scroller, ScrollTo, Plugin, Plugins

Share This Story, Choose Your Platform!

Do NOT follow this link or you will be banned from the site!