How can I delay the start of a CSS animation?

Delaying the start of the animation is very simple. Simply add the animation-delay property to your code: .slideRight{ animation-name: slideRight; animation-duration: 1s; animation-timing-function: ease-in-out; visibility: visible !important; /* New code here: */ animation-delay: 1s; } It’s important to note that animation-delay only delays the start of the animation from the beginning. If you have a … Read more

How to keep styles after animation?

Try with: #fadein { -webkit-animation-fill-mode: forwards; /* Chrome 16+, Safari 4+ */ -moz-animation-fill-mode: forwards; /* FF 5+ */ -o-animation-fill-mode: forwards; /* Not implemented yet */ -ms-animation-fill-mode: forwards; /* IE 10+ */ animation-fill-mode: forwards; /* When the spec is finished */ }

CSS Animation property stays after animating

I think you’re looking for animation-fill-mode CSS3 property https://developer.mozilla.org/en/CSS/animation-fill-mode The animation-fill-mode CSS property specifies how a CSS animation should apply styles to its target before and after it is executing. for your purpose just try to set h2 { animation: fadeIn 1s ease-in-out 3s; animation-fill-mode: forwards; } Setting forwards value «the target will retain the … Read more

Pure CSS animation visibility with delay

You are correct in thinking that display is not animatable. It won’t work, and you shouldn’t bother including it in keyframe animations. visibility is technically animatable, but in a round about way. You need to hold the property for as long as needed, then snap to the new value. visibility doesn’t tween between keyframes, it … Read more