by jbaudanza · 7y ago · 0 comments
This works, but it seems a little glitchy in some environments. I'm wondering if it's too much to make DOM modification and then trigger a transition in the next tick.
Do it entirely css. if you use a have a keyframe animation applied and remove display:none on clicking. The animation will fire immediately. Unlike trying to transition it without using keyframes.
example: https://jsfiddle.net/mr029o7h/ (sorry if its a bit messy haven't done this for a while)