gsap实现海底鬼鱼动画效果代码
代码语言:html
所属分类:动画
代码描述:gsap实现海底鬼鱼动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
min-height: 100vh;
width: 100vw;
display: flex;
justify-content: center;
margin: 0;
flex-direction: column;
background: lightblue;
overflow: hidden;
}
.jellyfish-area {
display: block;
padding: 40px;
width: 100%;
flex-grow: 1;
text-align: center;
margin: auto;
margin-top: 0;
background: linear-gradient(180deg, #00acc1, #064273);
}
#jellyfish {
max-height: 80vh;
margin: auto;
overflow: visible;
opacity: 0.8;
}
#jellyfish .body, #jellyfish .tentacle {
filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}
.body {
fill: rgba(255, 255, 255, 0.4);
stroke: #fff;
stroke-width: 0.1;
opacity: 0.6;
}
.tentacle.outer {
fill: rgba(255, 255, 255, 0.28);
}
.tentacle..........完整代码请登录后点击上方下载按钮下载查看
















网友评论0