加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
svg3.html 1.56 KB
一键复制 编辑 原始数据 按行查看 历史
luobyinan 提交于 2019-07-10 22:06 . 添加了变色和旋转
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
.tanchidou{
width:70px;
height:70px;
position:relative;
animation-name:tanchidou;
animation-duration:5s;
animation-timing-function:linear;
animation-iteration-count:infinite;
animation-direction:alternate;
animation-play-state:running;
}
@keyframes tanchidou
{
0% {fill:green; left:0px; top:0px;transform:rotate(0deg);transform-origin:50% 50%;}
25% {fill:orangered; left:250px; top:0px;transform:rotate(90deg);transform-origin:50% 50%;}
50% {fill:lightpink; left:250px; top:250px;transform:rotate(180deg);transform-origin:50% 50%;}
75% {fill:lightblue; left:0px; top:250px;transform:rotate(270deg);transform-origin:50% 50%;}
100% {fill:green; left:0px; top:0px;transform:rotate(360deg);transform-origin:50% 50%;}
}
.biankuang{
width: 1000px;
height: 1000px;
}
</style>
</head>
<div class="biankuang">
<body>
<svg class="svg-inline--fa fa-codiepie fa-w-15 tanchidou" focusable="false" data-prefix="fab" data-icon="codiepie" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 472 512">
<path d="M422.5 202.9c30.7 0 33.5 53.1-.3 53.1h-10.8v44.3h-26.6v-97.4h37.7zM472 352.6C429.9 444.5 350.4 504 248 504 111 504 0 393 0 256S111 8 248 8c97.4 0 172.8 53.7 218.2 138.4l-186 108.8L472 352.6zm-38.5 12.5l-60.3-30.7c-27.1 44.3-70.4 71.4-122.4 71.4-82.5 0-149.2-66.7-149.2-148.9 0-82.5 66.7-149.2 149.2-149.2 48.4 0 88.9 23.5 116.9 63.4l59.5-34.6c-40.7-62.6-104.7-100-179.2-100-121.2 0-219.5 98.3-219.5 219.5S126.8 475.5 248 475.5c78.6 0 146.5-42.1 185.5-110.4z"></path></svg>
</body>
</div>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化