I have a lot of .line , and I apply fading animation to them. I am wondering if there is an easy way to somehow swing the animation timing so that each of them starts one after another (as against all at once). In other words, I want to create an effect when the first .line starts to disappear, then after a second the second .line will disappear, and then after a second the third .line will disappear. This is only needed in Chrome.
div.line { width: 300px; height:5px; background:red; -webkit-animation: fade 20s infinite; -webkit-animation-timing-function: linear; } @-webkit-keyframes fade { 0% { opacity:1.0; } 50% { opacity:0.0; } 100% { opacity:1.0; } } <div class="line"></div> <div class="line"></div> ... <div class="line"></div>
Jon
source share