我正在做一个项目,一旦表单提交2文本淡入和淡出。一切都很好。但在现实中,淡出只是将不透明度设置为零。我需要它不显示任何内容;
$('#text-7').delay(3000).fadeOut(1000);
在“text-7”下,有一些对象的鼠标悬停在动作上。动作完成后,文本不透明度从技术上讲为零,而不是显示无。因此,下面的对象不再能够悬停。
编辑:
假设这个文本在表单提交之后来来回回
<div id="storyline">
<div id="text-6" class="justify-content-center align-items-center">
<h1 class="text-center">Text 1</h1>
</div>
<div id="text-7" class="justify-content-center align-items-center">
<h1 class="text-center">Text 2</h1>
</div>
</div>
现在,在他的下面有一个现有的对象,应该是悬停的。但事实并非如此,因为文本-7正在阻挡它。
发布于 2021-05-22 08:16:53
函数fadeOut()有一个回调函数,该函数在fadeOut转换之后执行。
$('#text-7').delay(3000).fadeOut(1000, function (){
$(this).css({ display: "none" });
});
https://stackoverflow.com/questions/67644954
复制相似问题