Howdy,

Since my post about this effect has a lot of succes I decided to make a little plugin to simplify it even more.

First of all go check out the Demo.

Download

You can download it from github or use git to checkout git://github.com/djpate/jSlideto.git

Setup

Get the script and upload jquery.slideto.min.js (it’s located in the js directory) to your web directory.

Now simply add the js in your tags.

for example

<script src="js/jquery.slideto.min.js" type="text/javascript"></script>

If you want to use the highlight effect you also have to install jQuery ui.

Usage

Basic

$("#someDiv").slideto();

No Highlight

$("#someDiv").slideto({
  highlight: false
});

Customized

$("#someDiv").slideto({
  highlight_color: 'blue',
  highlight_duration: 'slow',
  slide_duration: 500
});

Options

name default info
highlight true true or false
highlight_duration 3000 A duration in milliseconds
highlight_color FFFF99 A color code
slide_duration slow A duration in milliseconds or slow,normal,fast
Share

Related Posts: