作者:黄文斌
撰写时间:2019 年 1 月 17 日
开发工具与关键技术:CSS
CSS实现动画旋转变色
这里我利用了属性animation来实现了动画旋转
用animation属性必须要配合keyframes来使用;
keyframes:实现从0%到100%之间的动画效果
下面是我编写的旋转代码
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>ql</title>
<style>
.dds{
transform:rotate(20deg);
width:100px;
height:100px;
position:relative;
left:200px;
top:200px;
animation:ss 5s infinite linear
}