简体   繁体   中英

How avoid that CSS animation's delay remove element from DOM?

I have make some test here: https://codesandbox.io/s/mmo5nzyjvy

I have found that CSS animation's delay property remove my element from the DOM until the element is animated.

I'm hence wondering how avoid that my element being removed from DOM while the delay is triggered?

any hint would be great, thanks

Put the animation effect on another class.

Once the animation is complete. remove the animating class from the animated elements.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM