I have spend all day looking for an easy way to make my animation start after I have scrolled to a specific place on the page.
My css
.animation {
width: 50%;
float: left;
position: relative;
-webkit-animation-name: test;
-webkit-animation-duration: 4s;
-webkit-animation-iteration-count: 3;
-webkit-animation-fill-mode: forwards;
animation-name: test;
animation-duration: 4s;
animation-iteration-count: 1;
animation-fill-mode: forwards; }
And my HTML
<div class="container">
<div class="animation">
Content goes here...
</div>
</div>
I wonder how to make the animation start when I scroll to the class container.
Javascript
HTML
CSS
JSFiddle to play with (don't forget to scroll)