Staggering CSS Animations

后端 未结 3 1766
一个人的身影
一个人的身影 2021-01-07 12:41

I have a CSS animation that I want to be applied in 200ms intervals. I\'ve set up the CSS like this:

.discrete {
    position:relative;
    opacity:1;

    -         


        
3条回答
  •  生来不讨喜
    2021-01-07 13:30

    I have created simple 2 line solution which works among all frameworks

    let dl = 0.2; //time-delay // document.querySelectorAll('.card.fade-in').forEach(o=>{dl+=0.2;o.style.animationDelay=dl+'s'});

提交回复
热议问题