初始
div{opacity:0-webkit-animation-name: fadeIn
animation-name: fadeIn
-webkit-animation-duration: 1s a
nimation-duration: 1s
-webkit-animation-fill-mode: forwards
animation-fill-mode: forwards
-webkit-animation-delay:6s /**延迟动画**/
animation-delay:6s
}
@-webkit-keyframes fadeIn {
0% {
opacity: 0
}
100% {
opacity: 1
}
}
@keyframes fadeIn {
0% {
opacity: 0
}
100% {
opacity: 1
}
}
itjob为您解答:<style>
.it{
list-style:none
}
.it li{
float:none
width:50px
height:30px
position:relative
margin-right:10px
}
.it li ul{
display:none
position:absolute
top:30px
left:0px
}
.it li a{
display:block
text-decoration:none
}
@keyframes itjob{
display:block
}
.it li a:hover ul{
animation:itjob 2s
}
</style>
html:
<div class="div1">
<ul class="it">
<li><a href="#">远标培训1</a></li>
<li>
<a>
<ul>
<li><a href="#">远标培训2</a></li>
</ul>
</a>
</li>
<li><a href="#">远标培训3</a></li>
</ul>
</div>