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

#248781
Shikkediel
Participant

Cheers. No, that’s not a typo but a special JQ event listener where it is used once (hence the one) and then removed. Otherwise each time the mouse enters the item, it would add another handler and it would start firing multiple times. Nested events are tricky like that. If it were pure JS, I would’ve used an extra line to remove the event listener but jQuery’s handy with this.

http://api.jquery.com/one/

Link shows a 404 by the way…