Forums

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

Home Forums CSS Prevent css3 animation from returning to original state?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #43893
    Rugg
    Participant

    Hi,

    I’m using css3 to animate the position of an element. It functions correctly…but after the animation is complete, the element returns to it’s original state. I’ve managed to find a partial fix by adding **-webkit-animation-fill-mode: forwards**; to the element. I’m thinking there must be a better method though.

    Does anyone have a better solution? Your help is appreciated.

    **Example:** http://jsfiddle.net/6bzTY/1/embedded/result/

    **Example** (with animation-fill-mode): http://jsfiddle.net/6bzTY/embedded/result/

    #130685
    Kitty Giraudel
    Participant

    You got the solution already:

    animation-fill-mode: forwards;

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