Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS stop animation by click or hover at last frame Reply To: stop animation by click or hover at last frame

#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.