Slide Right

Effect from the tutorial

Slide Left

This effect is made by changing the inside of the animate function in JQuery.

animate({ left : '-'+distance }

Just making it into negative number, everything else is same as the normal effect.

Slide Down

This is effect is made slightly different then in the tutorial.

var distance = $(this).outerHeight();
and
animate({ top : distance }

As you can see, the distance variable is now the height of the div instead of it's width.

Slide Up

This is effect is made slightly different then in the tutorial.

var distance = $(this).outerHeight();
and
animate({ top : '-' + distance }

Same as sliding down effect, but we are making it into a negative number.

下载代码说明
X关闭

jquery图像一侧拉门效果

JS控制图像分裂效果,跟上一个不同,这个可以向四个不同方向滚动滑出