Introduction:
In this project, we will create a button which is covered by an animation that creates RGB effect
HTML:
<!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">
<title>RGB button by creation code</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<a href="#" class="button">
<span>CREATION CODE</span>
</a>
</body>
</html>
CSS:
html, body{
height: 100%;
overflow: hidden;
}
body{
background: #191919;
display: flex;
align-items: center;
justify-content: center;
}
.button{
background-image: linear-gradient(90deg, #00C0FF 0%, #FFCF00 49%, #FC4F4F 100%);
position: relative;
padding: 3px;
display: inline-block;
border-radius: 8px;
}
.button span{
display: inline-block;
background: #191919;
color: white;
text-transform: uppercase;
padding: 2rem 5rem;
border-radius: 5px;
font-family: "segoe UI";
font-weight: 800;
font-size: 3rem;
}
Comments
Post a Comment