jQuery: ScrollTo

With theĀ  jQuery ScrollTo plugin, you will easily scroll overflowed elements, and the screen itself.
It gives you access to many different options to customize and various ways to specify where to scroll.

  • A raw number
  • A string(’44’, ‘100px’, ‘+=30px’, etc )
  • A DOM element (logically, child of the scrollable element)
  • A selector, that will be relative to the scrollable element
  • The string ‘max’ to scroll to the end.
  • A string specifying a percentage to scroll to that part of the container (f.e: 50% goes to to the middle)
  • A hash { top:x, left:y }, x and y can be any kind of number/string like above

Leave a Reply