此页面为源码效果演示页面

点我返回此源码页面,登录后免费下载

源码:jquery图像一侧拉门效果源码

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.