// purecss.com

CSS does more
than you think.

35 interactive UI patterns — zero JavaScript required.

examples
Pure CSS
dependencies
JavaScript
Browse Examples ↓
What is Pure CSS?
Techniques that work without any JavaScript.
Does it work everywhere?
Modern browsers support all examples here.
Layout Beginner
Accordion / FAQ
Expandable content panels using the <details> and <summary> elements.
Examples
Pure CSS
Feedback Advanced
Animated Number Counter
Numbers that count up using @property, CSS counters, and animations.
Layout Beginner
Scroll Snap Carousel
A horizontal carousel using scroll-snap-type and scroll-snap-align.
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.

Navigation Advanced
Scroll Spy Indicator
A reading progress bar that tracks scroll position using CSS scroll-driven animations.
Name Role Status
Alice Chen Designer Active
Bob Torres Engineer Pending
Carol Kim Manager Active
David Park Analyst Inactive
Layout Beginner
Sticky Table Header
A table header that stays fixed while scrolling using position: sticky on <thead>.
Contents
Intro
Install
Usage
API
Intro
Sidebar uses position: sticky to stay visible while content scrolls.
Install
No dependencies. Copy CSS into your project.
Navigation Beginner
Sticky Sidebar
A sidebar that sticks to the viewport while scrolling using position: sticky.