<link href="https://fonts.googleapis.com/css2?family=Warnes&display=swap" rel="stylesheet">
<button id="neon" class="noselect">
<span id="n">N</span>
<span id="e">e</span>
<span id="o">o</span>
<span id="n2">n</span>
</button>
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
background-color: #000000;
background-image: linear-gradient(315deg, #000000 0%, #5e5368 74%);
height: 100vh;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
.noselect {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
button {
background: none;
border: none;
font-family: 'Warnes', cursive;
color: #333;
font-size: 30px;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
width: 100px;
}
span {
margin: -6px;
padding: 0;
width: 20px;
}
#neon:hover span {
animation: flicker 1s linear forwards;
}
#neon:hover #e {
animation-delay: 200ms;
}
#neon:hover #o {
animation-delay: 500ms;
}
#neon:hover #n2 {
animation-delay: 600ms;
}
@keyframes flicker {
0% {color: #333;}
5%, 15%, 25% {
color: #fff;
text-shadow: 0px 0px 25px cyan;
}
10%, 20% {
color: #333;
text-shadow: none;
}
30% {
color: #fff;
text-shadow: 0px 0px 25px cyan;
}
100% {
color: #fff;
text-shadow: 0px 0px 25px cyan;
}
}
#neon:focus {
outline: none;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.