svg+gsap实现花瓣旋转动画效果代码
代码语言:html
所属分类:动画
代码描述:svg+gsap实现花瓣旋转动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link href="https://fonts.googleapis.com/css2?family=Raleway:wght@200;300&display=swap" rel="stylesheet"> <style> :root { --default: hsl(247, 65%, 53%); --white-50: hsla(0, 100%, 100%, 50%); --white-25: hsla(0, 100%, 100%, 25%); --white: hsl(0, 100%, 100%); } *, *::before, *::after { box-sizing: border-box; } * { margin: 0; position: relative; } html { height: 100%; } img, picture, video, canvas, svg { display: block; max-width: 100%; } input, button, textarea, select { font: inherit; } p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; } #root, #__next { isolation: isolate; } body { color: white; font-family: "Raleway", sans-serif; font-size: 1rem; font-weight: 200; letter-spacing: 0.02em; background: var(--default); overflow-x: hidden; } h1 { font-size: 1rem; font-weight: 300; line-height: 1.5; } p { font-size: 0.68rem; line-height: 1.15; padding-bottom: 1rem; } .petal { mix-blend-mode: screen; } .container-btn { margin: 1rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; z-index: 10; position: absolute; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 25.........完整代码请登录后点击上方下载按钮下载查看
网友评论0