css布局实现一个闪亮边框走光动画炫酷按钮效果代码

代码语言:html

所属分类:动画

代码描述:css布局实现一个闪亮边框走光动画炫酷按钮效果代码

代码标签: css 布局 闪亮 边框 走光 动画 炫酷 按钮

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  

  
<style>
body {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Roboto";
}

div.shiny-button {
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  position: relative;
  margin: 2rem;
  padding: 1rem 1.5rem;
  color: #93f8ff;
  border: 3px solid transparent;
  border-radius: 60px;
  background-color: #064549;
  background-image: linear-gradient(to bottom right, #0a6b73, #020a0e), linear-gradient(125deg, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 53%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 100%, 200%;
  background-position: 0px, -250px;
  -webkit-animation: 4s border-glint linear backwards infinite;
          animation: 4s border-glint linear backwards infi.........完整代码请登录后点击上方下载按钮下载查看

网友评论0