元素的样式将回到最原始设置状态。原始设置状态是指?
我在15%加上了background变成绿色,我以为当runing停止播放时,会突然变回黄色,可是没有变动,请问原始应该是什么时候的状态?
2015-06-23
你的问题可以这样解决,
span{
display: inline-block;
width: 20px;
height: 20px;
background: orange;
transform: translateY(90px);
animation-name: move;
animation-play-state:paused;
}
div:hover span {
animation-name: move;
animation-duration: 10s;
animation-timing-function: ease-in;
animation-delay: .2s;
animation-iteration-count:infinite;
animation-direction:alternate;
animation-play-state:running;
}
举报