码迷,mamicode.com
首页 > Web开发 > 详细

CSS3的animation+scale实现视觉冲击力的效果

时间:2017-01-21 17:04:41      阅读:197      评论:0      收藏:0      [点我收藏+]

标签:key   infinite   inf   ima   ase   charset   body   scale   oct   

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
@keyframes aaa {
from {-webkit-transform: scale(1);
transform: scale(1);}
to{-webkit-transform: scale(2);
transform: scale(2);}
}
#aaa{
margin:200px auto;
width:250px;
height:250px;
background: red;
border-radius: 50%;

}
#aaa:hover{
animation: aaa 0.1s ease-in 0s infinite alternate;
}
</style>
</head>
<body>
<div id="aaa"></div>
</body>
</html>

CSS3的animation+scale实现视觉冲击力的效果

标签:key   infinite   inf   ima   ase   charset   body   scale   oct   

原文地址:http://www.cnblogs.com/qiancheng123/p/6337295.html

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