css+js实现炫酷走光按钮点击动画效果代码
代码语言:html
所属分类:表单美化
代码描述:css+js实现炫酷走光按钮点击动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap'>
    <style>
        .sketch-button {
          -webkit-tap-highlight-color: transparent;
          cursor: pointer;
          -webkit-appearance: none;
             -moz-appearance: none;
                  appearance: none;
          outline: none;
          border: none;
          font-family: inherit;
          font-size: 16px;
          font-weight: 500;
          background-image: linear-gradient(90deg, #fcecfe, #fbf6e7, #e6fcf5);
          border-radius: 11px;
          padding: 12px 20px;
          position: relative;
          line-height: 24px;
          color: #14387e;
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02), 0 4px 16px rgba(0, 0, 0, 0.02), 0 4px 24px rgba(0, 0, 0, 0.02);
        }
        .sketch-button.start svg {
          -webkit-animation: stroke 1s linear;
                  animation: stroke 1s linear;
        }
        .sketch-button .lines {
          position: absolute;
          inset: 0;
          mix-blend-mode: hard-light;
          pointer-events: none;
  .........完整代码请登录后点击上方下载按钮下载查看
















			
			
				
			
	
网友评论0