开发者

adding fade transition to images using jquery

This question has been asked here, Image Replacement (gallery style) with Fade-In's / Fade-Out's

This is the script http://www.webdesignerwall.com/demo/jquery/img-replacement.html

But, I'm not sure if it accomplishes what I want, I can't get it t开发者_如何学JAVAo work.

I just want to get a smooth cross fade transition between this image replacement. I've been searching and messing with picture gallery scripts all night.

Any help?


tvanfosson suggested something like this in his answer to the question you noted:

http://jsfiddle.net/ambiguous/SH5Q9/

The basic idea is to wrap a <div> around the the large image and then apply the fadeOut() and fadeIn() effects to that <div>.

Also, you would do well to set yourself up on http://jsfiddle.net, it is a great tool for playing around with things and makes it easy to show people on SO what you've tried already.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜