Video_2022-06-15_164338
<div class="test-ul" ref="testUrl">
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
$('.test-ul ul li').each((index, item) => {
item.style.opacity = 1 - index / 10;
})
// 1 0.9 0.8 0.7
setInterval(() => {
$('.test-ul ul li').each((index, item) => {
if (item.style.opacity == 0) {
item.style.opacity = 1
}
item.style.opacity = parseFloat(item.style.opacity) - 0.1
})
}, 100)