CSS Tutorials
Short, hand-written tutorials that explain the CSS behind the components in this catalog. Every example is pulled verbatim from a real component — the code you read is the code the live preview runs.
- Working code from real components
- Original explanations, no filler
- Accessibility and performance included
Frosted Glass in CSS: How backdrop-filter Works
Learn how CSS glassmorphism works — translucent fills, backdrop-filter blur, edge highlights — using three real FreeCsStyles glass buttons with complete code.
What you'll learn: Understand the four properties that create frosted glass, why backdrop-filter needs a busy background to be visible, and how to keep text on glass readable.
CSS Hover Effects That Work on Touch and Keyboard
Write CSS hover effects that are fast and accessible: target the right transition properties, mirror hover with :focus-visible, and handle touch devices where hover never fires.
What you'll learn: Learn to choose which properties to transition, why `transition: all` is a trap, and how to give keyboard users the same feedback as mouse users.
Animated Buttons That Respect prefers-reduced-motion
Animate CSS buttons without harming users who ask for less motion: the exact prefers-reduced-motion pattern used by nine catalog buttons, plus performance guidance.
What you'll learn: Learn how to disable decorative keyframe animation cleanly when the operating system reports prefers-reduced-motion, without breaking the button's function or layout.