Skip to content

Instantly share code, notes, and snippets.

@CodeMyUI
Created May 21, 2019 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CodeMyUI/156fa4e3340157d89277c5662630fdd5 to your computer and use it in GitHub Desktop.
Save CodeMyUI/156fa4e3340157d89277c5662630fdd5 to your computer and use it in GitHub Desktop.
Only CSS: 🔥Button
a 🔥🔥🔥
body {
background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
height: 100vh;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
}
a {
position: relative;
display: flex;
justify-content: center;
align-items: center;
width: 200px;
height: 50px;
background: #fff;
border-radius: 999px;
&:hover {
// box-shadow: 0 0 20px 10px rgba(230, 30, 10, 0.6);
animation: burn 1000ms ease-out forwards;
&::before {
content: '';
position: absolute;
left: 40px;
width: 100px;
height: 40px;
background: rgba(255, 230, 110, 1);
border-radius: 100%;
animation: flare 1000ms ease-out forwards;
}
&::after {
content: '';
position: absolute;
right: 40px;
width: 100px;
height: 40px;
background: rgba(255, 230, 110, 1);
border-radius: 100%;
animation: flare 1000ms ease-out forwards;
}
}
}
@keyframes flare {
100% {
transform: translateY(-20px) scale(1.5);
filter: blur(10px);
opacity: 0;
}
}
@keyframes burn {
0% {
color: rgba(255, 130, 110, 1);
background: rgba(255, 230, 110, 1);
box-shadow:
0 0 5px 0 rgba(200, 0, 10, 1),
0 0 5px 0 rgba(230, 30, 10, 0.8),
0 0 5px 0 rgba(230, 230, 10, 0.6);
}
100% {
color: rgba(0, 0, 0, 1);
background: rgba(255, 255, 255, 1);
box-shadow:
0 -35px 40px 30px rgba(255, 130, 10, 0),
0 -30px 30px 10px rgba(230, 30, 10, 0),
0 -20px 10px 0 rgba(255, 255, 10, 0);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment