// purecss.com
CSS does more
than you think.
35 interactive UI patterns — zero JavaScript required.
examples
Pure CSS
dependencies
JavaScript
Theme preview area
Dark / Light Mode
A theme switcher using a checkbox, CSS custom properties, and no JS.
What is Pure CSS?
Techniques that work without any JavaScript.
Does it work everywhere?
Modern browsers support all examples here.
Accordion / FAQ
Expandable content panels using the
<details> and <summary> elements.The secret is revealed!
Click-to-Reveal
Content that reveals on click using a checkbox as state.
Hover me
Back side!
3D Card Flip
A card that flips on hover using CSS 3D transforms and perspective.
Examples
Pure CSS
Animated Number Counter
Numbers that count up using
@property, CSS counters, and animations.← scroll or swipe →
Scroll Snap Carousel
A horizontal carousel using
scroll-snap-type and scroll-snap-align.16:9
1:1
4:3
Aspect Ratio Box
Maintain a fixed aspect ratio on any element using the
aspect-ratio property.
Reading Progress
The Future of CSS
CSS has evolved dramatically. What began as a simple styling language now supports animations, scroll-driven effects, and so much more.
Scroll-driven animations let you tie animation progress directly to scroll position — no JavaScript required.
How It Works
The animation-timeline property accepts a scroll() function. The browser maps the scroll range to the animation's progress automatically.
A @keyframes from width: 0% to width: 100% becomes a reading progress bar with a single CSS property.
Scroll Spy Indicator
A reading progress bar that tracks scroll position using CSS scroll-driven animations.
Glitch
Glitch
Glitch Effect
An animated text glitch using
clip-path, pseudo-elements, and CSS keyframes — no JavaScript.| Name | Role | Status |
|---|---|---|
| Alice Chen | Designer | Active |
| Bob Torres | Engineer | Pending |
| Carol Kim | Manager | Active |
| David Park | Analyst | Inactive |
Sticky Table Header
A table header that stays fixed while scrolling using
position: sticky on <thead>.