Home › Forums › CSS › stop animation by click or hover at last frame › Reply To: stop animation by click or hover at last frame
December 8, 2016 at 9:53 am
#248784
Shikkediel
Participant
It’s not that necessary here by the way because the listener is also removed on mouseleave
. But I only discovered later that that was needed because the class would otherwise always be removed once the image was entered, even if you leave it again before the event has fired. Can’t hurt to use one
either though.