gsap实现上传按钮点击波浪抖动动画效果代码
代码语言:html
所属分类:上传
代码描述:gsap实现上传按钮点击波浪抖动动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap'> <style> .upload-button { font-family: "Poppins", Arial; font-size: 16px; font-weight: 600; -webkit-appearance: none; -moz-appearance: none; appearance: none; color: #fff; background: none; border: none; outline: none; cursor: pointer; width: 128px; padding: 0; margin: 0; text-align: center; line-height: 20px; position: relative; filter: drop-shadow(0px 4px 12px rgba(118, 70, 215, 0.1)); transform: translateZ(0); } .upload-button > svg { display: block; width: 132px; height: 52px; fill: #7646d7; pointer-events: none; margin: -4px -2px; transition: fill 0.2s, transform 0.1s; transform: translateZ(0); } .upload-button:hover > svg { fill: #6f3bda; } .upload-button:active > svg { transform: scale(0.975) translateZ(0); } .upload-button .default, .upload-button .success { top: 12px; bottom: 12px; left: 0; right: 0; position: absolute; display: block; z-index: 1; } .upload-button .default > div, .upload-button .success > div { display: inline-block; vertical-align: top; } .upload-button .default > div > div span, .upload-button .success > div > div span { display: inline-block; vertical-align: top; transform-origin: 50% 100%; transform: translateZ(0); } .upload-button .success svg { width: 13px; height: 10px; fill: none; stroke: currentColor; stroke-linejoin: round; stroke-linecap: round; stroke-width: 2; display: inline-block; vertical-align: top; margin: 5px 4px 5px 0; str.........完整代码请登录后点击上方下载按钮下载查看
网友评论0