阿里巴巴矢量图标库
www.iconfont.cn
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>淘宝jQ运动</title>
<style type="text/css">
* {
padding: 0;
margin: 0;
}
#move {
width: 240px;
margin: 10px auto;
background-color: #f5f4f4;
border: 1px solid #ccc;
overflow: hidden;
}
#move a {
float: left;
display: inline-block;
width: 58px;
height: 25px;
border: 1px solid #ddd;
border-radius: 3px;
background: #fff;
text-align: center;
margin: 10px 10px;
position: relative;
padding-top: 40px;
color: #9c9c9c;
font-size: 12px;
text-decoration: none;
line-height: 25px;
overflow: hidden;
}
#move a i {
position: absolute;
top: 20px;
left: 0;
display: inline-block;
width: 100%;
text-align: center;
opacity: 1;
filter: alpha(opacity=100);
/*transition: all .3s ease-in;*/
}
#move a:hover {
color: #f00;
}
#move a:hover .i1{
-webkit-animation: taobao .5s ease-in-out .1s;
-o-animation: taobao .5s ease-in-out .1s;
animation: taobao .5s ease-in-out .1s;
}
/*#move a:hover .i1 {*/
/*top: -25px;*/
/*opacity: 0;*/
/*}*/
@keyframes taobao {
from{
top: 20px;
opacity: 1;
}
50%{
top: -25px;
opacity: 0;
}
75%{
top: 30px;
opacity: 0;
}
to{
top: 20px;
opacity: 1;
}
}
#move img {
border: none;
}
</style>
<!--<script type="text/javascript" src="jQ/jquery-1.4.4.min.js"></script>-->
<!-- <script>
$(function(){
$('#move a').mouseenter(function(){
$(this).find('i').animate({top:'-25px',opacity:'0'},300,'swing',function(){
$(this).css({top:'30px'})
$(this).animate({top:'20px',opacity:'1'},300,'swing')
})
})
})
</script> -->
</head>
<body>
<div id='move'>
<a href='#'><i class="i1"><img src="images/tickets.png"></i><p>彩票</p></a>
<a href='#'><i class="i2"><img src="images/film.png"></i><p>电影</p></a>
<a href='#'><i class="i3"><img src="images/fork.png"></i><p>外卖</p></a>
<a href='#'><i><img src="images/fly.png"></i><p>缴费</p></a>
<a href='#'><i><img src="images/game.png"></i><p>游戏</p></a>
<a href='#'><i><img src="images/protection.png"></i><p>理财</p></a>
</div>
</body>
</html>