<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="refresh" content="7">
<title>Document</title>
</head>
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body{
display: flex;
flex-direction: column;
gap: 20px;
min-height: 100vh;
justify-content: center;
align-items: center;
background: #000;
}
a{
position: relative;
width: 160px;
height: 50px;
line-height: 48px;
background: #000;
text-transform: uppercase;
font-size: 25px;
text-align: center;
letter-spacing: 0.1em;
text-decoration: none;
transition: 0.5s;
/*-webkit-box-reflect: below 1px linear-gradient(transparent, #0004);*/
}
a span{
position: absolute;
display: block;
top: 1px;
left: 1px;
right: 1px;
bottom: 1px;
text-align: center;
background: #0c0c0c;
color: rgba(255, 255, 255, 5);
transition: 0.5s;
}
a:hover span{
color: rgba(255, 255, 255, 1);
}
a span::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 50%;
background: rgba(255, 255, 255, 0.1);
z-index: 10;
}
a::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(45deg,
#c0392b,
#f39c12,
#f1c40f,
#2ecc71,
#3498db,
#2980b9,
#9b59b6,
#8e44ad,
#c0392b,
#f39c12,
#f1c40f,
#2ecc71,
#3498db,
#2980b9,
#9b59b6,
#8e44ad);
background-size: 400%;
opacity: 0;
transition: 2.5s;
animation: eff 20s linear infinite;
}
a:hover::before,
a:hover::after{
opacity: 1;
}
a::after{
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(45deg,
#c0392b,
#f39c12,
#07df12,
#05f8ec,
#f8fc03,
#2ecc71,
#130ff1,
#9b59b6,
#f39c12,
#0c0c0c,
#e605c8,
#f50808,
#f03ae7,
#2ec236);
background-size: 400%;
opacity: 0;
filter: blur(20px);
transition: 0.5s;
animation: eff 50s ease infinite;
}
@keyframes eff {
0%{
background-position: 0 0 ;
}
50%{
background-position: 400% 0;
}
100%{
background-position: 0 0;
}
}
</style>
<body>
<a href="#"><span>Buttom</span></a>
<a href="#"><span>Buttom</span></a>
</body>
</html>
Nenhum comentário:
Postar um comentário