鼠标悬浮霓虹灯点亮按钮效果

代码语言:html

所属分类:悬停

代码描述:鼠标悬浮霓虹灯点亮按钮效果

代码标签: 点亮 按钮 效果

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


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>

@import url("https://fonts.googleapis.com/css2?family=Questrial&display=swap");
/************************************************
1.	BODY
************************************************/
body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  background-color: #050f1a;
  font-family: "Questrial", Impact, sans-serif;
}

/************************************************
2.	LIEN et BOUTON
************************************************/
a {
  position: relative;
  display: inline-block;
  padding: 15px 30px;
  color: #00fff6;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-decoration: none;
  font-size: 30px;
  overflow: hidden;
  transition: 0.2s;
}
a:visited {
  color: #00fff6;
}
a:hover {
  color: #050f1a;
  background: #00fff6;
  border-radius: 3px;
  box-shadow: 0 0 10px #00fff6, 0 0 40px #00fff6, 0 0 80px #00fff6;
  transition-delay: 600ms;
}
a span {
  position: absolute;
  display: block;
}

/************************************************
3.	NEON DU HAUT
************************************************/
a span:nth-child(1) {
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00fff6);
}

a.........完整代码请登录后点击上方下载按钮下载查看

网友评论0