gsap+MorphSVGPlugin实现海浪波动船只飘动动画代码
代码语言:html
所属分类:动画
代码描述:gsap+MorphSVGPlugin实现海浪波动船只飘动动画代码
代码标签: gsap MorphSVGPlugin 海浪 波动 船只 飘动 动画 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
*,
:before,
:after {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0px;
overflow-x: clip;
overscroll-behavior: none;
outline: 0px !important;
}
body {
width: 100vw;
height: 100vh;
background-color: #dccebd;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
svgWrapper {
display: block;
padding: 15px;
aspect-ratio: 1;
visibility: hidden;
@media (orientation: landscape) {
width: 100%;
max-width: 400px;
}
@media (orientation: portrait) {
height: 100%;
max-height: 400px;
}
overflow: clip;
svg {
path {
will-change: auto;
}
}
}
}
</style>
</head>
<body translate="no">
<svgWrapper>
<svg version="1.1" id="svg1" viewBox="0 0 700 700" xmlns:xlink=&.........完整代码请登录后点击上方下载按钮下载查看















网友评论0