DEV Community

Discussion on: Making Web Animations

Collapse
 
niorad profile image
Antonio Radovcic

Also if you ever run into the problem that appearing elements are nicely animated, but disappearing nodes just vanish, and you don't want to add JS, you can handle the toggle with a checkbox and apply the animations to 'input:checked + div'. This way I could do the lids on devlids.com. The JS-way would be to add the disappear-animation-class and defer removing the dom-node with a timeout.