码迷,mamicode.com
首页 > 其他好文 > 详细

这是一个动画效果,一个圆在桌面上动

时间:2017-05-06 22:53:13      阅读:163      评论:0      收藏:0      [点我收藏+]

标签:mat   set   文档   nat   type   meta   round   height   sla   

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style type="text/css">
div{
width:200px;
height:200px;
position:relative;
background:rgba(205,105,12,0.5);
border-radius:100px;
animation:move 3s infinite alternate;
}
/*@keyframes move{
0%{
top:100px;
left:0px;}
20%{
left:100px;
top:0px}
50%{
left:500px;
top:30px;}
100%{
left:800px;
top:50px;}}*/
@keyframes move{
0%{
transform:translate(100px,100px);}
50%{
transform:translate(0px,0px);}
100%{
transform:translate(1000px,100px);}}

</style>
</head>

<body>
<div></div>
</body>
</html>

这是一个动画效果,一个圆在桌面上动

标签:mat   set   文档   nat   type   meta   round   height   sla   

原文地址:http://www.cnblogs.com/lylcn/p/6818825.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!