我做了以下简单的动画,其中图像在鼠标悬停时增长,但我真正想要的是它发生没有悬停,即页面加载时。Webkit转换没有悬停
HTML
<div id="first" class="animated grow"><img src="images/sunflower.png"></div>
CSS
/* GROW ANIMATION */
.grow img {
position: absolute;
bottom: 0;
height: 400px;
width: 160px;
-webkit-transition: all 5s ease;
-moz-transition: all 5s ease;
-o-transition: all 5s ease;
-ms-transition: all 5s ease;
transition: all 5s ease;
}
.grow img:hover {
width: 200px;
height: 500px;
}
我尝试使用以下,但它不工作。
from {width: 160px; height: 400px;}
to {width: 200px; height: 500px;}
要么是错误的路要走,要么我没有放在正确的地方。