开发者

Create a slider with a transition similar to that on the MetaLabs page? (with jQuery)

Wondering if anyone knew how to achieve the effect presented in the slider here:

http://metalabdesign.com开发者_如何学编程/

I can make a slider by lining up images and sliding them over, but how would I go about making that expanding/fading transition with jQuery library?

Thanks.


Use the animate function to change the size, position and opacity of the element.

$(element).animate({
    opacity:0,
    left: '-=30',
    top: '-=30',
    width: 630,
    height:330
}, 400);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜