// purecss.com
CSS does more
than you think.
55 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>.←
1
2
3
4
→
Showing results 11–20 of 48
Pagination Component
Numbered page buttons with an active state driven by radio inputs and
:checked.PURE CSS
NEON GLOW
Neon Text Effect
Glowing neon text using layered
text-shadow values and a flicker CSS animation.Particle Float
Floating particles using multiple elements with staggered CSS
animation-delay values.CSS Rain Effect
Animated rain streaks using absolutely-positioned elements and staggered
@keyframes.
Ring
Loading Spinners
Three spinner variants — ring, dots, and bars — built entirely with CSS animations.
Elastic
Spring
Linear
Elastic Bounce
A ball that bounces with a spring-like overshoot using a custom
cubic-bezier easing.
7
Countdown Timer
A visual countdown using
@property integers, CSS counters, and steps() animation.
New
✓
Changes saved successfully!
✕
ℹ
Session expires in 5 minutes.
✕
Toast Notification
A slide-in notification using
:target to trigger and a CSS animation to auto-dismiss.