A responsive grid of cards featuring illustrations, where each card is slightly rotated and scaled, creating a scattered paper effect on a dark background.

Scroll-Driven Masonry Reveal

demo & code

This Scroll-Driven Masonry Reveal creates a playful, tactile experience where content cards appear to be “dealt” onto the screen as the user scrolls. By leveraging the native CSS Scroll-driven Animations API, it achieves smooth, main-thread-free entrance effects without a single line of JavaScript. The layout adapts intelligently from 2 to 8 columns, making it a robust solution for image galleries or blog archives.

Level: Intermediate
Browser Support: Chrome 115+, Edge 115+, Safari 26+, Firefox (flag/polyfill)
Digital clock interface where time digits are enclosed in soft square blocks that bounce and roll when changing, shown in a blue and white theme

Bouncy Digital Block Clock

demo & code

This Bouncy Digital Block Clock transforms a standard time display into a playful, tactile UI element. It utilizes a split-digit technique where numbers “roll” into place while their container physically bounces, adding weight and character to every second that passes. The component is fully responsive, supports system dark mode automatically, and ensures accessibility via dynamic ARIA labels.

Level: Intermediate
Browser Support: Chrome 60+, Edge 79+, Firefox 60+, Safari 12+
Dark UI row of rounded buttons where 'Playlists' and 'Artists' are selected and visually fused into a single continuous capsule shape.

Merging Pill Filter Buttons

demo & code

This Merging Pill Filter Button set introduces a fluid, organic feel to standard multi-select inputs. Instead of keeping active items isolated, this component visually fuses adjacent selected buttons into a single continuous shape. It’s an excellent choice for music apps, filtering systems, or any UI where categories are related and grouping them visually adds context.

Level: Intermediate
Browser Support: Chrome 60+, Edge 79+, Firefox 50+, Safari 10+
Modern purple gradient accordion using CSS calc-size and details-content pseudo-element for smooth height animations

Pure CSS Animated Details Accordion

demo & code

This Pure CSS Animated Details Accordion utilizes cutting-edge CSS functions to achieve smooth height transitions on native HTML elements without a single line of JavaScript. By leveraging the revolutionary calc-size() function and the ::details-content pseudo-element, it finally solves the age-old problem of animating from height: 0 to height: auto.

Level: Intermediate
Browser Support: Chrome 129+, Edge 129+
A UI layout with multiple gray placeholder blocks being swept by a single, perfectly aligned white light beam moving across the entire screen.

Synchronized Pure CSS Skeleton Loader

demo & code

This Synchronized Pure CSS Skeleton Loader pushes the boundaries of modern CSS by creating a unified “shimmer” effect that sweeps across multiple disparate elements simultaneously. Unlike standard skeleton loaders that animate each block independently, this implementation ensures a single, globally aligned gradient flow using advanced CSS math and Houdini properties.

Level: Advanced
Browser Support: Chrome 111+, Edge 111+, Safari 16.4+, Firefox 128+
A circular avatar that scales up with a smooth pop-out effect on hover.

Fancy Hover Effect on Avatar

A pure CSS “pop-out” avatar effect utilizing CSS variables to orchestrate a scale transition.

See the Pen Fancy Hover Effect on Avatar.

A gallery of images framed to look like interlocking jigsaw puzzle pieces.

Wavy Image Gallery

Images appear as jigsaw puzzle pieces with interlocking edges that can visually fit together.

See the Pen Wavy Image Gallery.

An isometric text cube created with pure CSS, showing text on its different faces and rotating in 3D space.

CSS Cube

A pure CSS isometric text cube constructed via 3D transforms and trigonometry-based SCSS calculations. It features dynamic styling controlled by :has() and CSS variables, allowing for runtime theme switching (tritone/monotone/dim) and dark mode adaptation without JavaScript logic.

See the Pen CSS Cube.

A soft, 3D-like circular progress indicator in a neumorphic style, with the arc filling up.

Neumorphic Loader

A tactile Neumorphic progress indicator where JavaScript drives the animation state by updating a custom property --progress. The visual logic relies on CSS conic-gradient utilizing calculated color stops to dynamically render the filling arc, while complex layered box-shadow creates a soft, extruded 3D aesthetic.

See the Pen Neumorphic Loader.

A collection of skeuomorphic buttons with soft, 3D-like styling created with pure CSS gradients.

Soft Button Styling

A collection of skeuomorphic buttons rendered entirely in CSS using complex gradient layering and calc()-driven geometry variables.

See the Pen Soft Button Styling.

Minimalist dashboard with multiple animated progress bars tracking the passage of time from minutes to years.

Progress

A minimalist dashboard visualizing the passage of time across multiple scales (minute to year) via animated progress bars, updated in real-time.

See the Pen Progress.

Magnetic Links

Magnetic Links

A sophisticated magnetic navigation menu that uses JavaScript to map mouse proximity to CSS variables, driving smooth translations via translate. It features a configurable “follow” effect where a background pseudo-element glides between items based on bounding box coordinates calculated on hover.

See the Pen Magnetic Links.

Scrambling Letter Effect on Hover

Scrambling Letter Effect on Hover

On hover, letters scatter chaotically, creating a dynamic, interactive explosion of text without complex animation libraries.

Vertical Original vs. Negative Card (Hover and Drag)

Vertical Original vs. Negative Card (Hover and Drag)

An interactive card that reveals a negative version of the image on hover, with a draggable slider to compare the two versions, utilizing CSS blend modes and 3D transforms.

Segmented/Pill Radio Input

Segmented/Pill Radio Input

A sliding segmented control that uses CSS Custom Properties calculated via JS to animate a pseudo-element background. The layout relies on flexbox for equal distribution, while calc() dynamically positions the “pill” based on the active index, enhanced by a springy cubic-bezier transition.

See the Pen Segmented/Pill Radio Input.

Product Plan Cards with CSS Ribbons

Product Plan Cards with CSS Ribbons

A pure CSS pricing component that creates a dimensional ‘ribbon’ aesthetic solely through ::after pseudo-elements and clip-path geometry. The layout leverages CSS Custom Properties for distinct color themes and calc with negative margins to extend elements beyond the parent container, creating a folded paper effect without any JavaScript dependencies.

Fancy Image Hover Effects with Splitting.js

Fancy Image Hover Effects with Splitting.js

Explore a variety of sophisticated hover effects, where complex animation patterns are created using advanced CSS selectors like :nth-child(-n + 3). These selectors target specific ranges of “cells” generated by Splitting.js.

Text Reveal with Splitting.js

Text Reveal with Splitting.js

This demo is a showcase of Splitting.js, a library that splits HTML elements into granular parts for detailed animation. The “Course Clear” heading is split into individual characters, and a grid overlay is created with data-splitting="cells", allowing for complex, staggered animations on each part.

See the Pen Text Reveal with Splitting.js.

CSS Blockquote with Gradient Drop Cap

CSS Blockquote with Gradient Drop Cap

A unique drop cap is created with modern CSS techniques - its complex background is generated by layering linear-gradient and repeating-conic-gradient, while its responsive size is managed by calc().

Scalable CSS Radial Gradient Pattern

Scalable CSS Radial Gradient Pattern

A pure CSS pattern created by overlaying five radial-gradient declarations on a single element. The main feature is that all ring sizes and their count depend on a couple of CSS variables, making the pattern fully scalable using calc().

Fancy Corner Decoration for Images

Fancy Corner Decoration for Images

A border effect for an <img> tag - the size of the decorative edge, created with repeating-conic-gradient and -webkit-mask, is dynamically calculated via a complex calc() function controlled by CSS variables.

Interactive Card Glow Effect

Interactive Card Glow Effect

A modular React card component where a single pointermove listener updates CSS variables, powering a customizable, multi-layer glow and spotlight effect.

See the Pen Interactive Card Glow Effect.

Circular Battery Meter

Circular Battery Meter

An SVG-based battery meter where the fill level is a clever trick - JavaScript updates a CSS variable that drives a calc() function to animate the stroke-dashoffset of several <circle> elements simultaneously, creating a multi-layered visual effect.

See the Pen Circular Battery Meter.

Digital-Analog Dial Clock

Digital-Analog Dial Clock

A digital-analog clock hybrid where JavaScript’s setInterval only updates a single CSS variable - --dRotate, while all the complex rotation and counter-rotation of the dials and numbers is handled by pure CSS transform.

See the Pen Digital-Analog Dial Clock.

Multi-Card Spotlight Effect

Multi-Card Spotlight Effect

An interactive 3D card effect where JavaScript tracks pointermove, calculates the relative cursor position, and passes it to --ratio-x and --ratio-y CSS variables, while CSS uses calc() to drive rotateX and rotateY.

See the Pen Multi-Card Spotlight Effect.

CSS Knob Widget with Range Slider

CSS Knob Widget with Range Slider

A demonstration of the power of CSS and Sass - the knob is a standard range slider where the thumb is styled as a knob, and its transform: rotate is calculated based on the input’s value via CSS variables updated by JS.

Range Slider with Value and Ruler

Range Slider with Value and Ruler

An unconventional use of datalist to create a custom ruler scale under the slider, where tick marks are styled using box-shadow and linear-gradient, and their visibility is controlled by CSS variables within media queries.

CSS Triangles with pow() and sqrt()

CSS Triangles with pow() and sqrt()

A demonstration of creating perfectly equilateral CSS triangles using the native pow() and sqrt() mathematical functions inside calc(). This showcases how to achieve geometric precision without preprocessors, relying solely on modern CSS.

Pure CSS Responsive Hex Gridexternal link

An adaptive hexagonal grid without media queries, built on Container Queries, where the column count and the position of each element are calculated in CSS via complex calc() functions. The code demonstrates progressive enhancement - with a fallback to @property and a tan(atan2()) math trick to emulate division in older browsers.

Wheel Timeline. Pure CSSexternal link

An interactive radial carousel in pure CSS, where element positioning in a circle is calculated via calc(). State management is handled without JS using the “radio button hack” and the :has() pseudo-class, which triggers rotation animations and sequential content appearance.

Hover/Focus Effect For Flat Burronexternal link

A “slicing” fill effect created with two pseudo-elements - rotated rectangles that slide in from opposite sides on hover. The animation state is controlled by the --p CSS variable, which changes from 0 to 1, triggering the transform of the pseudo-elements via calc() to create a complex geometric transition.