Tailwind UI Pattern Registry for humans and agents

Effect Registry

Snippets

Browse all 189 CSS snippets. Each one is standalone, under 50 lines, Tailwind v4 compatible, and meant to be understandable as a reusable effect pattern, not just copied blindly.

Standalone Tailwind v4 Effect-first Registry-ready

lighting

Cursor- and sweep-driven light accents for premium surfaces.

depth

Layering, perspective, and stacking for spatial depth.

masks

Reveal and cutout effects where shape and transition matter more than motion.

atmosphere

Lightweight background systems for mood, depth, and focus without hard UI.

surfaces

Material and finish effects for cards, panels, and premium components.

glass

Translucency, see-through, and glass-like overlays for modern surfaces.

animations

Entry and motion patterns for components, headlines, and groups.

CSS Snippet

Bar Grow

Horizontal progress bar fill animation via scaleX transform. Configurable target width, duration and color.

animations
27L
CSS Snippet

Blur In

Elements materialize from a blurred state into sharp focus. A cinematic reveal effect with optional upward motion.

animations
31L
CSS Snippet

Clip Reveal

Four directional clip-path reveal animations (left, right, top, bottom) using inset() keyframes for entrance effects.

animations
55L
CSS Snippet

Count Up

Pure CSS counter animation using @property to register --count-n as an integer type, enabling smooth interpolation in counter-reset. No JavaScript needed.

animations
27L
CSS Snippet

Crossfade Pulse

Two elements that pulse in opposite phase — when one brightens, the other dims. Creates a breathing alternation effect without JavaScript.

animations
37L
CSS Snippet

Fade In

Smooth fade-in animations with optional direction (up, down). Uses professional spring-like easing. Respects prefers-reduced-motion.

animations
43L
CSS Snippet

Flip 3D

3D card flip on hover revealing a back face. Uses perspective and backface-visibility for a true coin-flip effect with front and back content.

animations
54L
CSS Snippet

Flip Word

Vertical word rotation — a CSS slot-machine effect that cycles through words in a list with a hold pause between each. No JavaScript needed.

animations
32L
CSS Snippet

Float Suspend

Schwebende Float-Animation mit konfigurierbarem Versatz und Dauer via CSS Custom Properties.

animations
22L
CSS Snippet

Gradient Background Scroll

Animated gradient background via background-size 400% + background-position loop. Weicher Farbwechsel durch vertikales Scrolling durch Gradient-Stops — kein Canvas, rein CSS.

animations
33L
CSS Snippet

Infinite Scroll

Seamless horizontal auto-scroll animation for logo clouds, tickers, and marquee effects. Pauses on hover. Respects reduced motion.

animations
29L
CSS Snippet

Marquee Scroll

Endlos-Horizontal-Scroll via GPU-beschleunigtem translate3d. Pausiert beim Hover. Konfigurierbare Geschwindigkeit.

animations
34L
CSS Snippet

Pulse Gradient

Breathing background-size animation on a dark-to-accent gradient — creates a subtle depth pulse for enterprise hero sections and full-bleed backgrounds.

animations
31L
CSS Snippet

Scale In

Scale-based entrance animations — subtle grow, grow-up, and pop-from-center variants. Professional easing with reduced-motion support.

animations
44L
CSS Snippet

Skeleton Shimmer Soft

Lower-contrast shimmer treatment for loading placeholders that feels calmer than aggressive skeleton sweeps.

animations
31L
CSS Snippet

Slide In

Directional slide-in animations from left, right, or bottom. Smooth deceleration curve with reduced-motion support.

animations
46L
CSS Snippet

Stagger

Automatically stagger child element animations with configurable delay. Add the class to a parent and children animate in sequence — pure CSS, no JS.

animations
49L
CSS Snippet

Stagger Reveal

CSS-only stagger system: set --stagger-index on each element to delay its fade-up by index × step.

animations
24L
CSS Snippet

Subtle Pulse

Gentle opacity pulse animation for notification badges, status indicators, and "new" markers. Respects prefers-reduced-motion.

animations
21L
CSS Snippet

SVG Draw

SVG path drawing animation via stroke-dasharray/dashoffset. Works on any SVG shape — path, circle, rect, polygon. Auto-play and hover variants.

animations
60L
CSS Snippet

SVG Path Draw

SVG paths animate as if being drawn, using stroke-dashoffset with configurable duration and delay.

animations
30L
CSS Snippet

Text Line Rise

Text rises into view from below, clipped by an overflow-hidden parent. A fundamental reveal animation for headlines and text blocks.

animations
27L
CSS Snippet

Tile Pop-In

Scale + fade entrance animation for cards and tiles, with configurable delay for stagger sequences.

animations
23L

easing

Curves for motion when timing itself makes the difference.

scroll

View- and scroll-driven mechanics for storytelling, progress, and structure.

CSS Snippet

Chapter Snap

Soft section snapping for long-form pages that should feel chaptered like a presentation.

scroll
12L
CSS Snippet

Clip Reveal Scroll

Scroll-progress-driven clip-path reveal. An element is gradually unmasked as the user scrolls, using IntersectionObserver thresholds mapped to a CSS custom property.

scroll
20L
CSS Snippet

Parallax

Pure CSS parallax scrolling with configurable speed. Three presets (slow, default, fast) powered by scroll-driven animations.

scroll
42L
CSS Snippet

Pill Nav Morph

Scroll-timeline-driven navbar that morphs from full-width and transparent into a centered glass pill as the user scrolls past 120 px.

scroll
37L
CSS Snippet

Progress Bar

A fixed scroll progress indicator at the top of the page. Grows from left to right as the user scrolls. Pure CSS, no JS.

scroll
34L
CSS Snippet

Scroll Counter

Numbers count up from zero to a target value as the element scrolls into view, using @property and CSS counters.

scroll
38L
CSS Snippet

Scroll Highlight

Elements become prominent when active in viewport — scales up, removes blur, increases opacity. Ideal for scroll-driven showcases.

scroll
27L
CSS Snippet

Scroll Reveal

Elements fade in and slide up as they enter the viewport using scroll-driven animations. Falls back to a one-shot animation for older browsers.

scroll
26L
CSS Snippet

Scroll Unmask

Progressive clip-path reveal driven by scroll position, unmasking elements as they enter the viewport.

scroll
48L
CSS Snippet

Sequential Steps

Steps enter one after another with a configurable pause once the group becomes visible. Useful for horizontal process rows where regular viewport triggers fire all items at once.

scroll
46L
CSS Snippet

Snap Sections

Full-viewport scroll snapping for section-based layouts. Mandatory snapping with start or center alignment. Uses dvh for mobile safety.

scroll
22L
CSS Snippet

Sticky Header

A sticky header that shrinks and adds a shadow as the user scrolls. Uses scroll-driven animation for buttery smooth transitions.

scroll
38L
CSS Snippet

Sticky Stack

Cards that stack on top of each other while scrolling. Each card has a decreasing z-index and increasing inset, creating a cascading deck effect with pure CSS sticky positioning.

scroll
53L

decorative

Ambient and ornamental backgrounds, textures, and visual accents.

CSS Snippet

Aurora

Animated aurora borealis gradient background that slowly shifts colors. Uses OKLCH and oversized background-size for smooth looping.

decorative
32L
CSS Snippet

Border Radius Smooth

Anti-aliased border radius using mask-image radial-gradient trick. Prevents jagged edges in Safari and GPU-composited overflow hidden scenarios.

decorative
6L
CSS Snippet

Color Breathe

Smooth OKLCH hue shift animation using @property to create a color-breathing background effect.

decorative
28L
CSS Snippet

Dashed Line

Pixel-perfect dashed lines using repeating-linear-gradient instead of border-dashed. Customizable dash length, gap, and color. Includes fade-out variants with mask-image.

decorative
63L
CSS Snippet

Depth Lines

Stacked vertical lines with decreasing opacity that create visual depth and structure. Uses box-shadow on a zero-width pseudo-element — no extra HTML needed.

decorative
57L
CSS Snippet

Device Frame

CSS-only device mockup with gradient shell, inset shadows, and blurred drop shadow. Wrap any screenshot or video in a realistic tablet/laptop frame without images.

decorative
68L
CSS Snippet

Dot Matrix

Decoratives Dot-Grid via radial-gradient background-image. Drei Varianten: standard, large und fade (mit mask-image Ausblendung zur Mitte).

decorative
48L
CSS Snippet

Double Border

Offset outer border via pseudo-element with negative margin. Creates a layered double-frame effect. Includes a hover variant that scales in on mouse enter.

decorative
51L
CSS Snippet

Edge Fade

Gradient overlay that fades content to a solid color at section edges. Bottom, top, or both directions. No mask-image — works with any background color.

decorative
66L
CSS Snippet

Frame Corners

All four corner brackets on a single element via background-image gradients. Fully configurable size, thickness, color, and offset — no pseudo-elements needed.

decorative
35L
CSS Snippet

Gradient Badge

Status badge with off-center radial gradient for a 3D-like depth effect. Semantic presets for success, danger, warning, and info.

decorative
40L
CSS Snippet

Gradient Border

Animated rotating rainbow border using @property and conic-gradient. The gradient spins continuously around the element.

decorative
41L
CSS Snippet

Gradient Border Glow

Animated gradient glow border that rotates around an element. Two pseudo-element layers — a blurred outer glow and a sharp inner border.

decorative
58L
CSS Snippet

Gradient Mesh

A soft, blurred multi-color gradient mesh background using layered conic gradients and blend modes. Fully configurable via OKLCH custom properties.

decorative
21L
CSS Snippet

Gradient Progress Line

A left-to-right progress line with configurable gradient stops. Use it for process progress, status semantics, or to sync a visual line with active steps.

decorative
30L
CSS Snippet

Grid Pattern

CSS-only grid and dot patterns for backgrounds. Configurable size, color, and thickness. No images or SVGs needed.

decorative
28L
CSS Snippet

Label Rail

Vertical rail accent for small label groups, metadata blocks, and editorial side notes.

decorative
17L
CSS Snippet

Lava Blobs

Three independent animated blobs with heavy blur that drift across a container, creating a fluid lava-lamp background effect.

decorative
99L
CSS Snippet

Mask Blob Layered

Two-layer organic blob mask — a colored accent blob behind an image with a different organic shape, creating a layered depth effect.

decorative
25L
CSS Snippet

Morph Blob

Organic morphing blob shape that continuously animates its border-radius through asymmetric values.

decorative
33L
CSS Snippet

Neon Glow

Pulsing neon glow effect for text and boxes using layered shadows that breathe between dim and bright.

decorative
41L
CSS Snippet

Noise Texture

Adds a subtle film grain / noise texture overlay to any element via a pseudo-element and inline SVG filter. No external images needed.

decorative
17L
CSS Snippet

Orb

Soft, glowing decorative orbs using radial gradients and blur. Static or pulsing variant. Perfect as ambient background decoration.

decorative
38L
CSS Snippet

Pulse Glow

Pulsing box-shadow glow effect for buttons, status indicators, and call-to-action elements. Configurable color and size via OKLCH.

decorative
25L
CSS Snippet

Radial Beam

A rotating conic-gradient spotlight beam sweeping from below the element. Uses @property to animate the beam angle smoothly. Works as a dark-section background accent.

decorative
44L
CSS Snippet

Ripple Rings

Three concentric expanding rings radiating outward — a pure-CSS sonar or live-status pulse for circular indicators.

decorative
36L
CSS Snippet

Shadow Depth

Four semantic shadow utility classes — natural, floating, strong, and crisp — covering directional, diffuse, elevated, and hard-offset shadow styles Tailwind's generic scale doesn't address.

decorative
34L
CSS Snippet

Shimmer

Loading skeleton placeholder with a diagonal light sweep animation for content loading states.

decorative
31L
CSS Snippet

Story Progress Line

Thin chapter-progress rail for narrative pages, deck sections, and long-form storytelling flows.

decorative
12L
CSS Snippet

Stripe Reveal

Hover overlay with animated repeating stripes for buttons, cards, and highlighted surfaces.

decorative
40L
CSS Snippet

Topographic Lines

Soft contour-line background accent for editorial cards, hero panels, and diagram-like surfaces.

decorative
33L

interactions

Hover, pointer, and click reactions for more tactile components.

CSS Snippet

Accessible Focus Ring

WCAG 2.2 compliant double focus ring with outline and contrasting shadow. Dark mode aware with :focus-visible fallback.

interactions
21L
CSS Snippet

Billing Toggle

A styled checkbox that toggles between monthly and annual billing plans. Pure CSS, no JavaScript, keyboard and screen-reader accessible.

interactions
55L
CSS Snippet

Border Draw

Border draws itself around an element on hover using clip-path transitions on pseudo-elements.

interactions
39L
CSS Snippet

Button 3D

Physical 3D button with inset highlight/lowlight edges. Light strip on top, shadow on bottom via pseudo-element — inverts on press for a tactile click feel.

interactions
54L
CSS Snippet

Button Background Slide

Button hover effect where a contrasting background slides in from the left using a 200% gradient and background-position transition with elastic easing.

interactions
28L
CSS Snippet

Button Glow

Button with a colored box-shadow that matches the background, creating a neon-like glow beneath. Shadow intensifies on hover, softens on press.

interactions
42L
CSS Snippet

Button Text Slide

Button label slides up and out on hover while duplicate text slides in from below. Slot-machine style text replacement with overflow hidden.

interactions
43L
CSS Snippet

Caption Slide Card

Media card overlay where the caption block lifts into place on hover, useful for galleries, featured posts, and promo tiles.

interactions
32L
CSS Snippet

Card Fan Stack

Cards spread into a shallow fan on hover for preview stacks, deck thumbnails, and grouped evidence blocks.

interactions
20L
CSS Snippet

Carousel Snap

CSS-only horizontal carousel with scroll-snap. Responsive — full-width on mobile, 2-up on tablet, 3-up on desktop. No JavaScript required.

interactions
47L
CSS Snippet

Clip Path Toggle

Bidirectional clip-path text swap on hover. Default text wipes out to the left while alternate text wipes in from the right — a directional "rewind" transition.

interactions
36L
CSS Snippet

Clip Wipe Hover

Directional clip-path wipe on hover that reveals a back layer from any direction. A modern alternative to 3D flip-box effects.

interactions
33L
CSS Snippet

Cursor Spotlight

Radial-Gradient folgt dem Cursor innerhalb einer Card via CSS Custom Properties --cx/--cy, gesetzt durch ein Mini-JS.

interactions
34L
CSS Snippet

Custom Scrollbar

Styled scrollbar with configurable width, track and thumb colors. Uses CSS standard scrollbar-color with -webkit fallback. Dark mode aware.

interactions
34L
CSS Snippet

Dropdown Origin Shift

Direction-aware dropdown motion that appears anchored to its trigger instead of just fading in.

interactions
38L
CSS Snippet

Expand Cards

Flex-based accordion cards with vertical tab labels that expand on hover. Collapsed cards show rotated text, active card reveals full content. Mobile-responsive with stagger entrance.

interactions
116L
CSS Snippet

Flip Card

3D card flip effect revealing back content on hover using CSS perspective and backface-visibility.

interactions
44L
CSS Snippet

Focus Within Panel

Panel-level focus treatment that highlights a whole grouped UI block whenever one of its inner controls receives keyboard focus.

interactions
16L
CSS Snippet

Glow

Cursor-following glow effect on hover using a pseudo-element and radial gradient. Configurable color, size, and intensity.

interactions
33L
CSS Snippet

Hamburger Stagger

Asymmetric burger icon with half-width top/bottom lines that rotate into an X with a springy cubic-bezier easing.

interactions
55L
CSS Snippet

Haptic Press

3D press effect that sinks the element downward on click — a bottom shadow collapses as if the button is physically pressed into the surface.

interactions
34L
CSS Snippet

Hover Lift

Elements lift up and gain a shadow on hover. Simple, elegant depth feedback with configurable distance and shadow.

interactions
19L
CSS Snippet

Icon Shift Link

Inline link treatment where the trailing icon glides forward on hover, ideal for text actions, cards, and section CTAs.

interactions
23L
CSS Snippet

Icon Swap

CSS-only icon crossfade on hover. Default icon slides up and fades out while hover icon slides in from below — smooth swap without JavaScript.

interactions
50L
CSS Snippet

Image Accordion

CSS-only image accordion where hovered items expand while siblings collapse with blur overlay. Uses flex-grow transitions — no JavaScript.

interactions
100L
CSS Snippet

Input Spotlight

Rotating conic-gradient spotlight border on focus. A light beam sweeps around the input field when active — no JavaScript required.

interactions
56L
CSS Snippet

Jelly

Elastic squash-and-stretch animation on click. The element compresses then bounces back with dampening — like pressing a rubber button.

interactions
48L
CSS Snippet

Magnetic

Elements subtly follow the cursor on hover, creating a magnetic pull effect. Requires a small JS snippet to set mouse position variables.

interactions
22L
CSS Snippet

Modal Scale Fade

Overlay entry treatment that scales and fades a panel into place without feeling abrupt. Works for modals, dialogs, and drawers.

interactions
33L
CSS Snippet

Nav Anchor Slider

A sliding background that follows nav links on hover — zero JavaScript, powered entirely by CSS Anchor Positioning.

interactions
56L
CSS Snippet

Nav Fill Expand

Background color block that fills upward from bottom on hover, inverting text color. Great for nav items, buttons, and CTAs.

interactions
38L
CSS Snippet

Nav Underline Expand

Underline that expands outward from center on hover. Works on navigation links, text links, and tab items.

interactions
33L
CSS Snippet

Nav Underline Slide

Directional underline that slides in from right on hover and out to left on unhover, using scaleX with swapped transform-origin.

interactions
34L
CSS Snippet

Orbit Ring

CSS-only rotating orbit ring with up to four counter-rotating items that stay upright as the ring spins. Uses animation-delay offsets to space items evenly.

interactions
45L
CSS Snippet

Pulse Border

Expanding border ring that fades outward in a loop. Draws attention to an element without being intrusive — like a sonar ping.

interactions
34L
CSS Snippet

Ripple

Material Design-style ripple effect on click using a pseudo-element and radial gradient. Pure CSS with optional JS for click position.

interactions
37L
CSS Snippet

Ripple CSS

CSS-only expanding circle ripple on hover and click. No JavaScript required — uses a pseudo-element that scales from center.

interactions
43L
CSS Snippet

Rolling Text

Text rolls upward on hover, revealing a duplicate from below. A sleek micro-interaction for navigation links and buttons.

interactions
29L
CSS Snippet

Scheme Toggle

Prevents janky transition flashes during dark/light mode switching by temporarily killing all CSS transitions via a body class.

interactions
5L
CSS Snippet

Scroll Hint

Bouncing scroll indicator that nudges users to scroll down. Pure CSS animation, no JavaScript required.

interactions
28L
CSS Snippet

Scroll Progress Ring

Fixed-position scroll-to-top button with an SVG ring that fills as the user scrolls down the page.

interactions
52L
CSS Snippet

Shine Border

Rotating conic-gradient border using @property for smooth angle animation. Activates on hover — no JavaScript needed.

interactions
45L
CSS Snippet

Shine Sweep

Diagonal light streak sweeps across an element on hover, creating a polished glass-like reflection effect.

interactions
34L
CSS Snippet

Sidebar Slide Over

Slide-over behavior for mobile sidebars and off-canvas panels, with reduced-motion fallback.

interactions
34L
CSS Snippet

Spring Bounce

Entrance animation with spring overshoot — cubic-bezier(0.34, 1.56, 0.64, 1) exceeds 1 to produce a physical bounce. Also a stagger variant for lists and grids.

interactions
48L
CSS Snippet

Stack Peek Card

Card hover effect that reveals a two-layer stack behind the surface for a more editorial, dimensional hover state.

interactions
64L
CSS Snippet

Stagger Entrance

Children of a container slide up and fade in sequentially as the container enters the viewport. CSS transitions triggered by IntersectionObserver.

interactions
25L
CSS Snippet

Sticky Reveal

Slide-down entrance animation for sticky headers. The header slides into view from above when the sticky class is applied on scroll.

interactions
26L
CSS Snippet

Swing

Horizontal shake with dampening on hover. Oscillates left-right with decreasing amplitude — grabs attention without being aggressive.

interactions
36L
CSS Snippet

Tab Indicator Slide

Active tab underline treatment that feels more deliberate than a static border-bottom.

interactions
31L
CSS Snippet

Table Row Highlight

Hover, focus, and active-state treatment for dense table rows and list items.

interactions
22L
CSS Snippet

Thumb Reveal Link

Link hover that reveals a small thumbnail beside the label, useful for editorial lists, menus, and featured link groups.

interactions
64L
CSS Snippet

Thumb Stack Link

Link hover that reveals a small stack of thumbnails, useful for menus, portfolios, and featured editorial lists.

interactions
81L
CSS Snippet

Thumbnail Hover Scrim

Image scale with dark overlay scrim on hover. Uses clip-path to honor border-radius during GPU-composited transforms.

interactions
38L
CSS Snippet

Tilt

3D perspective tilt on hover that follows the cursor position. Configurable tilt angle, perspective, and duration.

interactions
22L
CSS Snippet

Underline Draw

Gradient-based underline that draws from left to right on hover. Works on inline wrapping text unlike ::after approaches.

interactions
23L
CSS Snippet

Underline Dual

Two-phase underline animation where ::before draws in from left while ::after fades out to right, creating a choreographed handoff effect.

interactions
65L
CSS Snippet

Underline Shrink

Visible underline that shrinks away on hover. The inverse of underline-draw — starts visible, disappears on interaction.

interactions
23L
CSS Snippet

Widget Expand

Widgets lift and slightly scale to signal active focus without breaking the surrounding grid.

interactions
12L

text

Typographic utilities and effects for more readable and punchy copy.

CSS Snippet

Blockquote Centered

Centered blockquote with thin horizontal line accents above and below instead of quotation marks or left border. Clean editorial aesthetic.

text
36L
CSS Snippet

Character Stagger

Staggered character entrance animation using CSS custom property --char-index. Each character slides up and fades in with an offset delay.

text
22L
CSS Snippet

Cursor Blink

Blinkender Terminal-Cursor via ::after Pseudo-Element. Harter Schnitt statt Fade für authentisches Aussehen.

text
38L
CSS Snippet

Fluid Size

Responsive font sizes that scale smoothly between viewport widths using CSS clamp(). Five presets from sm to 2xl.

text
19L
CSS Snippet

Font Weight Morph

Continuously animates font-variation-settings between thin and bold on variable fonts. Creates a pulsing weight effect with no JavaScript.

text
20L
CSS Snippet

Gradient Text

Apply a gradient to text using background-clip. Static and animated variants. Configurable colors, angle, and speed via OKLCH custom properties.

text
48L
CSS Snippet

Gradient Text

Textfarbe als Gradient via background-clip. Zwei Varianten: bunt (.gradient-text) und subtil-neutral (.gradient-text-subtle).

text
35L
CSS Snippet

Letter Pull Up

Characters slide up from behind an overflow:hidden clip mask. Distinct from opacity-fade entrances — letters physically emerge from below the baseline.

text
23L
CSS Snippet

Letter Spacing In

Block-level text entrance that animates from compressed letter-spacing to an expanded value while fading in. Creates a cinematic expansion effect.

text
24L
CSS Snippet

Link Swap

Typographic link hover that swaps the visible label with a second colored layer using pseudo-elements and data-hover.

text
52L
CSS Snippet

Text Balance

Even line breaks for headings with text-wrap balance. Prevents orphans in body text with text-wrap pretty. Native CSS, no JS.

text
7L
CSS Snippet

Text Reveal

Words slide up and fade into view as the element enters the viewport. Vanilla JS word-splitter with CSS transitions, no external dependencies.

text
29L
CSS Snippet

Text Stroke Reveal

Text starts as an outlined stroke and fills with color using @property to animate opacity.

text
27L
CSS Snippet

Truncate Multiline

Truncate text to a configurable number of lines with an ellipsis. Uses -webkit-line-clamp with baseline browser support.

text
7L
CSS Snippet

Typewriter Reveal

Text reveal animation using clip-path that mimics typewriter effect. Pure CSS, no JavaScript. Respects reduced motion and includes @supports fallback.

text
27L
CSS Snippet

Underline Swipe

Inline link effect where the underline draws in with a directional swipe, suited for navs, article links, and text actions.

text
32L
CSS Snippet

Wavy Text

Continuous wave animation on character spans using nth-child staggered animation-delay. Ideal for logos, loading states, and playful headings.

text
17L
CSS Snippet

Word Highlight

Translucent pill-shaped underlay behind individual words using a ::after pseudo-element. Emphasizes keywords inline without disrupting text flow.

text
19L
CSS Snippet

Word Stagger

Staggered word entrance animation using CSS custom property --word-index. Each word slides up with a subtle skew and fades in with an offset delay.

text
22L