gpt4 book ai didi

jquery - 淡出一张图像,淡入第二张图像

转载 作者:太空宇宙 更新时间:2023-11-04 05:26:20 24 4
gpt4 key购买 nike

我想让一张图片慢慢淡出,而第二张图片慢慢淡入。两张图片当然应该在同一位置。我如何在不将样式设置为 position: absolute 的情况下实现这一目标?

最佳答案

尝试类似...

$('imageOneSelector').fadeOut(1000, function(){
$(this).replaceWith(new image html);
$('imageOneSelector').fadeIn(1000);
});

更新:

这是一个没有图像的 jsfiddle 测试,但应该是相同的概念......

http://jsfiddle.net/qWngq/1/

关于jquery - 淡出一张图像,淡入第二张图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4934163/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com