Forums

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

Home Forums CSS Hover @keyframe run the full animation

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #44995
    Slake
    Participant

    **Hi,**

    I can’t find the way to play an animation till the end when an element is :hover once.

    _If i stop “hover” the element, the animation reset, but i need it to finish even if i stop hover the element._

    [Sample “jsfiddle”](http://jsfiddle.net/5SueS/ “Sample “jsfiddle””)

    _:hover –> run animation from 0% to 100% (one time)._

    Any idea ? Thanks.

    #136585
    pixelgrid
    Participant

    it can be done with javascript,
    on hover add a class and then have a listener
    about when the animationEnd event fires
    so you can remove the class.

    http://stackoverflow.com/questions/7694323/css3-animation-on-hover-force-entire-animation

    #136667
    Slake
    Participant

    Thanks Pixelgril, i was thinking that there was a solution without js but it seems there isn’t.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.