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


<!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>


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM