CSS keyframes, no JS involved
Transition on class toggle →
toggle
0 transitionend