css transitions - CSS3 Animations to only start after the page has been created -
i have built website has lots of animations, using css3. elements animated have position attribute set absolute, , container's position set relative. each element has top , left value (set via style attribute), when page loads, elements animated position defined top:0px;left:0px. there way page start off elements @ there desired positions without them being animated?
your css animations ready before javascript. add class body know it's ready animations...
window.onload = function(){ document.body.classname += " animated"; } and in css
.box { /* usual styles here*/ } .animated .box { -prefix-animation: animationname duration ease; }
Comments
Post a Comment