AnimateScroll
A Simple jQuery Plugin for Animating the Scroll
Demo can be seen at http://plugins.compzets.com/animatescroll
What is it exactly?
AnimateScroll is a jQuery plugin which enables you to scroll to any part of the page in style by just calling the animatescroll()
function with the id
or classname
of the element where you want to scroll to.
It gives power to the user with its various options to customize the style of scrolling, scroll speed and many more. Supports more than 30 unique Scrolling Styles.
Usage
You need two things for this plugin to work, one is "jQuery library" and the other animatescroll.js
file.
Just include the animatescroll.js
file after the "jQuery library" as shown in the code snippet below and you're done.
NOTE: The only dependency for this plugin to work is jQuery library.
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">script>
<script src="animatescroll.js">
This is the element where you want to scroll to
/*
* You may call the function like this
* (but better attach an event listener)
*/
Go to Element