Most demos need a newer browser

They use :has() and container queries. Update your browser, or on an iPhone update iOS to 16.4 or later.

CSS Feedback Examples

Feedback is how an interface says what just happened, or what is happening right now. Spinners, progress bars, toast notifications, alert banners, skeleton placeholders, and confirmation states all belong here, and none of them need JavaScript to move.

Most run on animation rather than stored state: a keyframe starts on load, on hover, or the moment a checkbox flips. The ones that have to be dismissed use :target or a checkbox, so the dismissal sticks. Several of these pages are candid about the limit involved, since a progress bar with no script is choreography rather than measurement.

No examples match these filters yet. Turn on another level or pick another category.

Click to run the sequence

click to start
click to start

Progress Button

Intermediate

A button that animates a fill on click using a checkbox and transform: scaleX(), a state machine built entirely in CSS.

Four gradients, one sweep

Pure CSS Golden Shimmer Rainbow Text Effect // loading content...

Text Shimmer Effect

Beginner

A moving gradient shimmer across text using background-clip: text and CSS keyframes.

Four directions off one trigger

Top ↑ Right → Bottom ↓ ← Left

Tooltip Directions

Intermediate

Tooltips pointing top, right, bottom, and left using ::before and ::after pseudo-elements.

Four severities and a dismiss

ℹ
Info Your password will expire in 7 days.
✓
Success Your profile was updated successfully.
⚠
Warning You have unsaved changes on this page.
✕
Error Failed to connect. Check your network.

Alert Banners

Beginner

A base class plus one modifier per severity: each tints the background, colors the border, and sets the text color. The last banner is dismissible using a checkbox.

Three toasts, driven by the URL hash

Your browser can't run this demo

It needs :has(), which this browser doesn't support yet, so you're seeing a plainer version. It works in Chrome 105+, Edge 105+, Firefox 121+ and Safari 15.4+.

Needs :has()

Position
✓ Changes saved successfully! ✕
✕ Something went wrong. Try again. ✕
ℹ Your session expires in 5 minutes. ✕

Toast Notification

Intermediate

A slide-in notification using :target to trigger and a CSS animation to auto-dismiss, with a picker for six placement options.

Two stages, one checkbox

Are you sure?

Confirm Button

Intermediate

A two-stage destructive action button that uses a checkbox to reveal the confirm step.

Ten seconds, on a loop

Seconds

Countdown Timer

Advanced

A visual countdown using @property integers, CSS counters, and steps() animation.

Four spinners, one technique

Ring
Dots
Bars
Orbit

Loading Spinners

Beginner

Four spinner variants (ring, dots, bars, and orbit) built entirely with CSS animations.

Counting up to a target

Examples
Pure CSS
Rating

Animated Number Counter

Advanced

Numbers that count up using @property, CSS counters, and animations.

Placeholders with a moving highlight

Your browser can't run this demo

It needs :has(), which this browser doesn't support yet. It works in Chrome 105+, Edge 105+, Firefox 121+ and Safari 15.4+.

Needs :has()

Skeleton Loader

Intermediate

An animated placeholder loading state built from CSS keyframes and a moving gradient, with no JavaScript.

Five bars, one element type

CSS
HTML
JS
Rust
Upload

Progress Bars

Intermediate

Animated progress bars built from the native <progress> element and CSS, with no JavaScript.

Hover a word to see its tip

Hover over this word or this one to see tooltips.

Tooltip on Hover

Beginner

Tooltips on hover built from CSS pseudo-elements and a data-tip attribute, with no JavaScript.

A toggle that repaints a panel

This area reacts to the theme toggle. Background, text and border all change.

Dark / Light Mode

Intermediate

A theme switcher built from a checkbox, CSS custom properties and no JavaScript at all.