CSS Glassmorphism Button
.glass-button {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
A curated collection of reusable HTML, CSS, and JavaScript snippets to help you build faster, cleaner, and more efficient frontend interfaces.
.glass-button {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
<nav class="navbar">
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Contact</a>
</nav>
const toggle = () => {
document.body.classList.toggle('dark-mode');
};
Human-friendly, production-ready patterns you can copy and adapt.
HTML, CSS, and JS categories with examples and variations.
Vanilla-first approach. Works anywhere, fast to integrate.
Use as a reference, for prototyping, or for teaching.
Issues and PRs welcome — help the library grow.
A collection of handcrafted, production-ready snippets.
.glass-card {
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
}
.gradient-button {
background: linear-gradient(135deg, #6B47DC, #B429E4);
border: none;
color: white;
padding: 12px 24px;
border-radius: 8px;
}
function type(el, text, speed = 90) {
let i = 0;
const interval = setInterval(() => {
el.textContent += text.charAt(i);
i++;
if (i === text.length) {
clearInterval(interval);
}
}, speed);
}
<nav class="navbar">
<a href="#" class="logo">Logo</a>
<div class="nav-links">
<a href="#">Home</a>
<a href="#">About</a>
</div>
</nav>
Fork the repository and create a new branch for your feature.
Add your code snippet with clear comments and a descriptive name.
Submit a pull request with a concise description of your changes.