我有一个简单的 fadeIn 函数,它会淡入工具提示 1,然后淡出 2,然后淡出 3 等...是否有更动态且更好的编程方式来执行此操作?目前,这就是我的工作方式:- HTML
<div class="tooltips tooltip1" tooltip="<h2>Introduction <div>Area</div></h2><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p><div class='main-button red-btn'><a href='#'>Watch Video</a></div>" tooltip-position="top">
<div class="tooltip-pad">
<div class="tooltip-info">
Introduction
</div>
</div>
</div>
<div class="tooltips tooltip2" tooltip="<h2>Auditorium <div>Area-in</div></h2><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p><div class='main-button purple-btn'><a href='#'>View Auditorium Area</a></div>" tooltip-position="top">
<div class="tooltip-pad">
<div class="tooltip-info">
Auditorium
</div>
</div>
</div>
<div class="tooltips tooltip3" tooltip="<h2>Main Hall Area <div>Video</div></h2><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p><div class='main-button'><a href='#'>View Main Hall Area</a></div>" tooltip-position="top">
<div class="tooltip-pad">
<div class="tooltip-info">
Main Hall
</div>
</div>
</div>
<div class="tooltips tooltip4" tooltip="<h2>Experience <div>Area</div></h2><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p><div class='main-button black-btn'><a href='#'>View Experience Area</a></div>" tooltip-position="top">
<div class="tooltip-pad">
<div class="tooltip-info">
Partner Hall
</div>
</div>
</div>
莫回无
相关分类