jQuery FadeIn 一张又一张地嵌套图像

发布于 2024-10-26 00:33:26 字数 731 浏览 12 评论 0原文

嗨,JQuery 大师,我需要你的帮助,我有一些 div


<div class="post">
    <div class="image-div">
         <img src="img" />
    </div>
</div>

<代码>

with images (images are hide via css) in a document and i want to fadeIn images in div,s 1 after 1 with 500ms delay and when all images are fadeIn callback alert completed please do this with little jQuery code Thanks

Hi JQuery Masters i need some help from you, i have some div's


<div class="post">
    <div class="image-div">
         <img src="img" />
    </div>
</div>

<div class="column"> <div class="image-div"> <img src="img" /> </div> </div>

<div class="sidebar"> <div class="image-div"> <img src="img" /> </div> </div>

<div class="footer"> <div class="image-div"> <img src="img" /> </div> </div>

with images (images are hide via css) in a document and i want to fadeIn images in div,s 1 after 1 with 500ms delay and when all images are fadeIn callback alert completed please do this with little jQuery code Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无法回应 2024-11-02 00:33:26
$("div.image-div").each(function(index) {
    $(this).delay(400*index).fadeIn(300);
});

检查工作示例 http://jsfiddle.net/Xc6jn/3/

$("div.image-div").each(function(index) {
    $(this).delay(400*index).fadeIn(300);
});

Check working example at http://jsfiddle.net/Xc6jn/3/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文