<!DOCTYPE html>
<!-- saved from url=(0073)http://www.w2bc.com/demo/201504/2015-04-27-jquery-tecent-focus/index.html -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="gbk">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>css3 动画 animation transform</title>
<!--<link href="css/app.min.css" rel="stylesheet">-->
<style>
* {
margin: 0;
padding: 0;
}
ul,
li {
list-style: none;
}
.side-nav-ul {
width: 168px;
position: fixed;
right: 0;
top: 200px;
}
.side-nav-item {
height: 50px;
line-height: 50px;
background: orange;
text-align: center;
transition: all .5s linear;
margin-left: 84px;
}
.side-nav-item:hover {
margin-left: -20px;
}
.side-nav-item a {
color: #fff;
text-decoration: none;
}
#yuan {
width: 100px;
height: 100px;
background: orange;
position: fixed;
top: 50%;
left: 50%;
margin-left: -50px;
margin-top: -50px;
-webkit-animation: border-radius 3s ease 0s infinite normal;
-moz-animation: border-radius 3s ease 0s infinite normal;
-o-animation: border-radius 3s ease 0s infinite normal;
animation: border-radius 3s ease 0s infinite normal;
}
@-webkit-keyframes border-radius {
0% {
border-radius: 0;
background: blue;
}
30% {
border-radius: 10px;
transform: translateX(100px);
}
50% {
border-radius: 50px;
transform: scale(2);
}
70% {
border-radius: 10px;
}
100% {
border-radius: 0;
}
}
</style>
</head>
<body style="width: 100%;">
<div id="fullPage" class="" style="height: 755px;">
<div id="sideNav" class="side-nav side-nav-1">
<ul class="side-nav-ul">
<li class="side-nav-item">
<a href="javascript:;" hidefocus="ture">
<i class="s-icon s-icon-home"></i>标题一
</a>
</li>
<li class="side-nav-item side-nav-item-cur">
<a href="javascript:;" hidefocus="ture">
<i class="s-icon s-icon-game"></i>标题二
</a>
</li>
<li class="side-nav-item">
<a href="javascript:;" hidefocus="ture">
<i class="s-icon s-icon-literature"></i>标题三
</a>
</li>
<li class="side-nav-item">
<a href="javascript:;" hidefocus="ture">
<i class="s-icon s-icon-comic"></i>标题四
</a>
</li>
<li class="side-nav-item">
<a href="javascript:;" hidefocus="ture">
<i class="s-icon s-icon-film"></i>标题五
</a>
</li>
<li class="side-nav-item">
<a href="javascript:;" hidefocus="ture">
<i class="s-icon s-icon-copyright"></i>标题六
</a>
</li>
</ul>
</div>
<div id="yuan"></div>
</body>
</html>