gsap+svg实现一个三维卡通人物望远镜搜索中动画效果代码
代码语言:html
所属分类:动画
代码描述:gsap+svg实现一个三维卡通人物望远镜搜索中动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
@import url("https://fonts.googleapis.com/css?family=Kanit:900");
body {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
min-height: 100vh;
/*overflow: hidden;*/
background-color: #0c56b5;
}
h1 {
font-family: "Kanit";
font-weight: 700;
color: #fff;
text-shadow: 0 1px 0 #09448f, 0 2px 0 #093f85, 0 3px 0 #083b7c, 0 4px 0 #083672, 0 5px 0 #073268, 0 6px 0 #062d5f, 0 7px 0 #062955, 0 8px 0 #05244c, 0 0 5px rgba(0, 62, 142, 0.05), 0 -1px 3px rgba(0, 62, 142, 0.2), 0 9px 9px rgba(0, 62, 142, 0.3), 0 12px 12px rgba(0, 62, 142, 0.3), 0 15px 15px rgba(0, 62, 142, 0.3);
font-size: 4rem;
text-align: center;
width: 100%;
margin: 0;
}
.box {
background-color: #88ce02;
width: 140px;
height: 140px;
border-radius: 10%;
}
.svg-container {
display: inline-block;
position: relative;
width: 25em;
padding-bottom: 25em;
vertical-align: middle;
overflow: hidden;
}
.svg-content {
display: inline-block;
position: absolute;
top: 0;
left: 0;
}
#LeftFoot {
transform-origin: 12px 2px;
}
.one {
opacity: 0;
-webkit-animation: dot 1.3s infinite;
-webkit-animation-delay: 0s;
animation: dot 1.3s infinite;
animation-delay: 0s;
}
.two {
opacity: 0;
-webkit-animation: dot 1.3s infinite;
-webkit-animation-delay: 0.2s;
animation: dot 1.3s infinite;
animation-delay: 0.2s;
}
.three {
opacity: 0;
-webkit-animation: dot 1.3s infinite;
-webkit-animation-delay: 0.3s;
animation: dot 1.3s infinite;
animation-delay: 0.3s;
}
@-webkit-keyframes dot {
0% {
opacity: 0;
}
50% {
opacity: 1;
}
100% {
opacity: 0;
}
}
@keyframes dot {
0% {
opacity: 0;
}
50% {
opacity: 1;
}
100% {
opacity: 0;
}
}
.st0 {
fill: none;
stroke: #55be93;
stroke-width: 28;
stroke-linecap: round;
stroke-miterlimit: 10;
}
.st1 {
fill: none;
stroke: #55be93.........完整代码请登录后点击上方下载按钮下载查看
网友评论0