Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.

Commit c0524df

Browse files
@atharvagadkari05 glowing button added
1 parent 1338b77 commit c0524df

1 file changed

Lines changed: 51 additions & 1 deletion

File tree

src/lib/buttons/buttons.scss

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,4 +833,54 @@
833833

834834
.cartoon_multi_layer_button:hover {
835835
box-shadow: 6px 24px 26px rgb(219, 219, 219);
836-
}
836+
}
837+
body{
838+
display: flex; /* GLOWING BUTTON(NEON) */
839+
height: 100vh;
840+
background: black;
841+
align-items: center;
842+
justify-content: center;
843+
}
844+
button{
845+
position: relative;
846+
height: 60px;
847+
width: 200px;
848+
border: none;
849+
outline: none;
850+
color: white;
851+
background: #111;
852+
cursor: pointer;
853+
border-radius: 5px;
854+
font-size: 18px;
855+
font-family: 'Raleway', sans-serif;
856+
}
857+
button:before{
858+
position: absolute;
859+
content: '';
860+
top: -2px;
861+
left: -2px;
862+
height: calc(100% + 4px);
863+
width: calc(100% + 4px);
864+
border-radius: 5px;
865+
z-index: -1;
866+
opacity: 0;
867+
filter: blur(5px);
868+
background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
869+
background-size: 400%;
870+
transition: opacity .3s ease-in-out;
871+
animation: animate 20s linear infinite;
872+
}
873+
button:hover:before{
874+
opacity: 1;
875+
}
876+
button:hover:active{
877+
background: none;
878+
}
879+
button:hover:active:before{
880+
filter: blur(2px);
881+
}
882+
@keyframes animate {
883+
0% { background-position: 0 0; }
884+
50% { background-position: 400% 0; }
885+
100% { background-position: 0 0; }
886+
}

0 commit comments

Comments
 (0)