I am trying to get a CSS animation property to stay after completion, is this possible?
This is what I am trying to achieve ...
The element should be hidden when the user lands on the page, after 3 seconds (or something else), it should disappear, and after the animation has finished, it should remain there.
Here is a fiddle attempt ... http://jsfiddle.net/GZx6F/
Here is the code to save ...
<h2>Test</h2> <style> @keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 0.9; } } h2 { animation: fadeIn 1s ease-in-out 3s; } </style>
I know how to do this with jQuery .. that would be so ...
<h2>test</h2> <script> $(document).ready(function(){ $('h2').hide().delay(3000).fadeIn(3000) }); </script>
css css3 css-animations
SparrwHawk Mar 19 '12 at 17:23 2012-03-19 17:23
source share