我已經在谷歌瀏覽器中測試過你的版本,它對我來說工作得很好。 也添加在Firefox的兼容性,這也適用於我。
這是我現在有:
HTML:
<ul>
</li>test</li>
</ul>
CSS:
ul {
background-color:black;
color:white;
width: 100px;
height:100px;
}
@-moz-keyframes flow-down {
0% {
padding-bottom: 0%;
}
100% {
padding-bottom: 30%;
}
}
@-webkit-keyframes flow-down {
0% {
padding-bottom: 0%;
}
100% {
padding-bottom: 30%;
}
}
ul:hover {
-moz-animation-name: flow-down;
-moz-animation-duration: 0.5s;
-moz-animation-timing-function: ease-in-out;
-moz-animation-fill-mode:forwards;
-webkit-animation-name: flow-down;
-webkit-animation-duration: 0.5s;
-webkit-animation-timing-function: ease-in-out;
-webkit-animation-fill-mode:forwards;
}
這裏是的jsfiddle版本只是櫃面:
http://jsfiddle.net/NQ5xk/1/
希望這有助於。
問候
CSS轉換是不是CSS動畫。 – BoltClock 2012-07-28 18:09:04