【发布时间】:2014-10-13 01:59:53
【问题描述】:
我有以下结构,我的问题是,当动画结束时,它正在替换它只是重新启动,我想知道它是否会在它悬停时停止 nad 在 finle 中等待,谢谢,这是代码:http://jsfiddle.net/bd4c5cc7/
<div class="nav">
<ul class="list">
<li>
<a href="#">Inicio</a>
</li>
<li>
<a href="#">Quienes somos</a>
</li>
<li>
<a href="#">Servicios</a>
</li>
<li>
<a href="#">Flota</a>
</li>
<li>
<a href="#">Donde estamos</a>
</li>
<li>
<a href="#">Contacto</a>
</li>
<li>
<a href="#">Galeria</a>
</li>
</ul>
</div>
这是我的 CSS:
.nav {
background-color: #A45A52;
width: 100%;
text-align: center;
border: 10px solid transparent;
margin-bottom: 50px;
}
.list {
list-style-type: none;
}
.list li {
display: inline;
font-family: MyFont;
color: white;
font-size: 26px;
padding: 20px;
-webkit-transition: all 1s ease 0s;
transition: all 1s ease 0s;
border: 1px solid transparent;
}
.list li:hover {
background-color: White;
color: #483C32;
-webkit-transform: translateY(10px);
-moz-transform: translateY(10px);
-o-transform: translateY(10px);
transform: translateY(10px);
border-radius: 20%;
}
【问题讨论】:
-
在 Firefox 上的 jsfiddle 中运行良好; jsfiddle.net/wrpkgcvp
-
它不会为我重新启动(osx / chrome),它只是跳回,但圆形边框和白色背景仍然存在......
标签: html css css-animations