gsap实现邮件按钮点击发送动画效果代码
代码语言:html
所属分类:动画
代码描述:gsap实现邮件按钮点击发送动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@700&display=swap");
body {
margin: 0;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
font-family: "Roboto", sans-serif;
font-weight: bold;
background-color: #291d89;
}
svg {
width: 100%;
height: 100vh;
}
.hidden {
visibility: hidden;
}
#base {
cursor: pointer;
}
</style>
</head>
<body >
<svg viewBox="0 0 1400 1080" fill="none" xmlns="http://www.w3.org/2000/svg">
<path id="paperPlaneRoute" d="M563.558,526.618 C638.854,410.19 787.84,243.065 916.53,334.949 1041.712,424.328 858.791,877.927 743.926,856.655 642.241,838.669 699.637,688.664 700,540" stroke="white" stroke-width="3" style="stroke-dashoffset: 0.001px; stroke-dasharray: 0px, 999999px;"/>
<g id="rectSent" clip-path="url(#clipPath)">
<g id="rectSentItems">
<rect id="sentBase" x="460" y="468.5" width="480" height="143" rx="23" fill="white"/>
<text id="txtSent" fill="#4F67ED" xml:space="preserve" style="white-space: p.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0