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