使用 jquery 添加淡入淡出过渡到图像
这个问题已在这里提出,图像替换(画廊风格)淡入 / 淡出
这是脚本 http:// /www.webdesignerwall.com/demo/jquery/img-replacement.html
但是,我不确定它是否能实现我想要的,我无法让它工作。
我只是想在这个图像替换之间获得平滑的淡入淡出过渡。我整晚都在搜索和弄乱图片库脚本。
有什么帮助吗?
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 to 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
tvanfosson 在回答问题 您注意到:
http://jsfiddle.net/ambigously/SH5Q9/
基本思想是将
包裹在大图像周围,然后对该
。fadeOut()
和fadeIn()
效果应用;div>另外,您最好在 http://jsfiddle.net 上进行设置,它是一个很棒的演奏工具周围的事物,可以很容易地向人们展示你已经尝试过的东西。
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 thefadeOut()
andfadeIn()
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.