CSS3 animation-fill-mode polyfill
Preface Let's pretend that a div is animated from opacity:0; to opacity:1; and i want to keep opacity:1; after the animation ends. That's what animation-fill-mode:forwards; does. @keyframes myAnimation { from { opacity:0; } to { opacity:1; } } div { opacity:0; animation-name:myAnimation; animation-delay:1s; animation-duration:2s; animation-fill-mode:forwards; } <div>just a test</div> Run it on jsFiddle Note 1: i didn't include the vendor prefixes here to simplify Note 2: that's just an example, please don't reply with "just use jQuery fadeIn function" etc. Some things to know In this answer