Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
Glowing Neon Button
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By @md-rosh02
Button submission checks
Checks will appear after the preview updates.
Buttons only: no full pages, forms, cards or navigation. Put scripts in the JavaScript tab. Tailwind uses utilities from HTML and JavaScript; use complete class names. Custom CSS supports plain CSS, without @apply, imports or plugins.
Accessibility quick check
Waiting for the rendered preview…
Try Tab, Enter and Space in the preview. Check the focus ring, hover and disabled states, then enable Reduce motion. These checks are guidance, not an accessibility certification.
Explore freely here. Remix to publish your version with credit to the creator.
About Glowing Neon Button
Glowing Neon Button is an animated CSS button by @md-rosh02. Preview the interaction, customize its HTML, styles and JavaScript, or download the files with creator credit.
- Effects and categories
- Hover effects
- Using this example
- Copy the HTML or download index.html, style.css and app.js. Test keyboard focus, motion and contrast in your own project.
Usage, Tailwind and licensing questions
Read the source files
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>Glowing Neon Button</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<a href="#">Button</a>
</body>
</html>CSS
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400&display=swap');
* {
margin: 0;
padding: 0;
font-family: 'Poppins', sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #000;
}
a {
position: relative;
display: inline-block;
font-size: 1.5em;
letter-spacing: .1em;
color: #0ef;
text-decoration: none;
text-transform: uppercase;
border: 2px solid #0ef;
padding: 10px 30px;
z-index: 1;
overflow: hidden;
transition: color 1s, box-shadow 1s;
}
a:hover {
transition-delay: 0s, 1s;
color: #fff;
box-shadow:
0 0 10px #0ef,
0 0 20px #0ef,
0 0 30px rgb(255, 0, 217),
0 0 40px #0ef,
0 0 50px rgb(255, 0, 217),
0 0 80px #0ef,
0 0 70px rgb(255, 0, 217),
0 0 80px #0ef,
0 0 100px rgb(255, 0, 217),
0 0 160px #0ef;
}
a::before {
content: '';
position: absolute;
top: 0;
left: -50px;
width: 0;
height: 100%;
background: #0ef;
transform: skewX(35deg);
z-index: -1;
transition: 1s;
}
a:hover:before {
width: 100%;
}