Are you looking for a way to make your website's Call-to-Action (CTA) buttons stand out? A boring, flat button might be ignored by your visitors. That's why you need a Neon Glowing Button.
In this post, I will share a pure CSS code snippet that creates a stylish neon glow effect when you hover over the button. It creates a beautiful animation that grabs attention instantly. Best of all, it requires no JavaScript or images—just pure CSS.
Why use this Neon Button?
- High Engagement: The glowing animation naturally draws the user's eye.
- Lightweight: It uses 0% JavaScript and no heavy image files, keeping your site fast.
- Fully Responsive: Looks great on mobile devices, tablets, and desktops.
- Easy to Customize: You can change the neon color to match your brand identity in seconds.
Live Preview
Hover your mouse over the button below to see the magic happen!
HTML & CSS Code
Copy the code below and paste it into your blog post or HTML widget.
<style>
.neon-btn {
font-size: 18px;
font-weight: bold;
color: #03e9f4;
text-decoration: none;
text-transform: uppercase;
padding: 15px 30px;
border: 2px solid #03e9f4;
border-radius: 5px;
display: inline-block;
transition: 0.2s;
background: transparent;
font-family: sans-serif;
letter-spacing: 2px;
}
.neon-btn:hover {
background: #03e9f4;
color: #000;
box-shadow: 0 0 10px #03e9f4, 0 0 40px #03e9f4, 0 0 80px #03e9f4;
}
</style>
<!-- Button HTML -->
<a href="#" class="neon-btn">Hover Me!</a>
How to Customize
You can easily customize this button to fit your website design. Here is a step-by-step guide:
1. How to Change the Color
The current color is set to Cyan (#03e9f4). To change it to another color (e.g., Neon Pink), simply replace #03e9f4 with your desired Hex code in the CSS.
- Neon Pink: #ff00ff
- Neon Green: #39ff14
- Gold: #ffd700
2. How to Change the Size
If the button is too big or too small, adjust the padding: 15px 30px; line. The first number (15px) controls the top/bottom space, and the second number (30px) controls the left/right space.
3. How to Change the Text
Find the line <a href="#" class="neon-btn">Hover Me!</a> at the bottom of the code. Just replace "Hover Me!" with your own text, such as "Download" or "Click Here".
Conclusion
I hope this neon button helps you improve your website design. It is a simple yet powerful way to upgrade your user interface. If you have any questions or need a different style, please leave a comment below! Don't forget to subscribe for more useful HTML/CSS snippets.