Two responsive buttons with iridescent glowing borders that react to mouse position, shown in both light and dark mode variants

Mouse-Reactive Iridescent Button

demo & code

This is a Mouse-Reactive Iridescent Button. It uses a sophisticated layering of CSS conic gradients and JavaScript pointer tracking to create a button with a vibrant, shimmering border that physically follows the user’s cursor. Its function is to provide a high-end, tactile micro-interaction that makes a standard call-to-action feel like a premium, light-sensitive object.

Level: Intermediate
Browser Support [As of Mar 2026]: Chrome 122+, Edge 122+, Firefox 128+, Safari 16.4+
A bright yellow button with an animated dashed border that draws itself around the perimeter on hover, along with corner dots that appear sequentially.

Animated Border Drawing Button

demo & code

This is an Animated Border Drawing Button. It transforms a standard call-to-action into a multi-stage micro-interaction. Upon hovering over the button, the component triggers a sequential animation where four corner dots appear, followed by four dashed border lines that “draw” themselves around the button’s perimeter, creating a high-end, futuristic feel.

Level: Intermediate
Browser Support [As of Mar 2026]: Chrome 105+, Edge 105+, Firefox 121+, Safari 15.4+
A sleek, pill-shaped button with advanced glassmorphic and iridescent effects that glow and shift on hover

Iridescent 3D Neumorphic Button

demo & code

This is an Iridescent 3D Neumorphic Button. It pushes CSS styling to the limit, using stacked gradients, oklch color spaces, and advanced blend modes to create a button that feels like a piece of polished, translucent hardware. Its function is to serve as a high-fidelity “Hero” element, delivering a tactile, light-responsive experience that feels alive under the cursor.

Level: Advanced
Browser Support [As of Mar 2026]: Chrome 105+, Edge 105+, Firefox 121+, Safari 15.4+
Dark pill-shaped button with a glowing cosmic hover effect revealing a 3D rotating particle galaxy inside

Cosmic 3D Galaxy Button

demo & code

This is a Cosmic 3D Galaxy Button. It replaces a standard solid color hover state with a dynamic, multi-layered particle system. Its function is to serve as a high-impact primary call-to-action, using spatial depth and global page illumination to draw maximum user focus.

Level: Advanced
Browser Support [As of Feb 2026]: Chrome 105+, Edge 105+, Firefox 121+, Safari 15.4+
Floating action button displaying an expanded menu list with icons and a morphing hamburger-to-close button animation

Morphing Hamburger Floating Action Button

demo & code

This is a Morphing Hamburger Floating Action Button (FAB). It uses a combination of CSS transitions and keyframe animations to reveal a hidden context menu. Its function is to consolidate multiple secondary actions (Settings, Copy, Share, Delete) into a single, space-saving focal point. The interaction is initiated by a vanilla JavaScript class toggle.

Level: Intermediate
Browser Support [As of Feb 2026]: Chrome 60+, Edge 79+, Firefox 55+, Safari 11.1+
Dark themed button with a star icon and the text 'Generate', glowing blue on interaction and swapping text to 'Generating' on focus.

Animated Futuristic State Button

demo & code

This Animated Futuristic State Button is more than just a clickable element; it’s a self-contained micro-interaction. Designed for actions like “Generate” or “Processing,” it features a idle flicker animation that transitions into an intense, glowing state upon focus. The text cleverly swaps from a call-to-action to a continuous verb (“Generate” → “Generating”) using purely CSS animations, providing immediate visual feedback without JavaScript.

Level: Intermediate
Browser Support [As of Feb 2026]: Chrome 80+, Edge 80+, Firefox 75+, Safari 13+
Three colorful retro power buttons (Stand By, Turn Off, Restart) in yellow, red, and green with skeuomorphic bevels and animated SVG icons using CSS stroke animations.

Skeuomorphic Retro Power Buttons

demo & code

Skeuomorphic design meets modern web animation in these Windows XP-inspired power buttons. This component utilizes detailed CSS shadows to create a tactile 3D effect, paired with SVG path manipulation for playful micro-interactions upon interaction.

Level: Intermediate
Browser Support [As of Feb 2026]: Chrome 80+, Edge 80+, Firefox 75+, Safari 13.1+
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 [As of Feb 2026]: Chrome 60+, Edge 79+, Firefox 50+, Safari 10+
Black 'Submit' button on a gray background; on hover, an arrow icon slides out from the right; on click, it transforms into a spinning loader

Micro-Interaction Loading Button

demo & code

This Micro-Interaction Loading Button demonstrates how to pack multiple feedback states into a single UI element without cluttering the interface. It starts as a clean “Submit” button. Hovering reveals a directional arrow, hinting at action. Clicking triggers a seamless loading sequence where the arrow transforms into a spinner, finally resolving into a checkmark to confirm success.

Level: Intermediate
Browser Support [As of Jan 2026]: Chrome 49+, Edge 15+, Firefox 43+, Safari 10+
Dark purple button with a sparkle icon and 'Generate Site' text; on hover, small white stars float around it

Sparkle Generate Button

demo & code

This Sparkle Generate Button adds a touch of delight to AI or creative tools. When hovered, the button doesn’t just change color - it emits a cloud of floating “sparkles” (particles) that drift and rotate. The effect is powered by CSS variables for performance, with a lightweight JavaScript snippet to randomize the particle paths, ensuring the animation feels organic and magical every time.

Level: Intermediate
Browser Support [As of Jan 2026]: Chrome 60+, Edge 79+, Firefox 55+, Safari 11+
A set of contact buttons that collapse into a single arrow icon and expand back on click.

Expanding Buttons

A horizontal contact bar (Email, Telegram, Twitter) smoothly collapses into a small arrow button and expands back upon clicking.

See the Pen Expanding Buttons.

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.

An animated button that morphs from a rectangle with text into a circle with a bouncing up arrow.

Up Arrow

A rectangular button smoothly shrinks into a circle, the text fades out, and an upward-pointing arrow begins to cyclically rise within it.

See the Pen Up Arrow.

Container Query Button Animation

Container Query Button Animation

A sleek interaction button where the code icon decomposes on hover: brackets slide apart and the slash rotates away, revealing the “Get Code” text. The animation is purely CSS-driven, utilizing calc() with a custom property --intent to interpolate transform values for a fluid, high-performance effect.

See the Pen Container Query Button Animation.

Metal/Glass Button

Metal/Glass Button

A high-quality simulation of a metallic surface that “plays” with light following the mouse cursor, creating a tactile sensation of premium material.

See the Pen Metal/Glass Button.

CSS Rage Button

CSS Rage Button

A playful button that shakes, reddens, and “curses” with increasing intensity upon each click (or hover for the secondary button), visualizing a gradual loss of composure.

See the Pen CSS Rage Button.

Glowing On/Off Buttons

Glowing On/Off Buttons

A skeuomorphic toggle button where the entire press effect is implemented in pure CSS using box-shadow and transform: scale(). JavaScript is only used to toggle the WAI-ARIA attribute aria-pressed on click.

See the Pen Glowing On/Off Buttons.

Skeuomorphic Like Button

Skeuomorphic Like Button

An advanced “Like” button micro-animation based on CSS @property, where custom variables are used to animate the numbers and the icon.

See the Pen Skeuomorphic Like Button.

Neumorphic Multi-Buttons with CSS Feedback

Neumorphic Multi-Buttons with CSS Feedback

An effective button group where the hover effect is created via inset box-shadow - and the click confirmation animation is implemented using transform and opacity on the ::after pseudo-element.

Expanding Social Share Button

Expanding Social Share Button

A smooth, morphing circular button that expands on click to reveal three link items, utilizing complex CSS transitions, transition-delay, and a Pug template structure for dynamic content generation.

See the Pen Expanding Social Share Button.

Undo/Redo With Active Clock Animation

Undo/Redo With Active Clock Animation

A clean frontend implementation of an interactive button pair, where the history logic (Undo/Redo state) is managed by minimal Vanilla JS, and the rich clock rotation and dial animation is fully delegated to CSS transforms.

Shine Gradient Buttons

Shine Gradient Buttons

An example of modern UI/UX design implemented with pure CSS. The demo shows how to use linear-gradient, box-shadow, and transform to create buttons with gradient fills and a 3D-like effect, while the @keyframes animation adds a dynamic shine, making the interactive element more engaging.

See the Pen Shine Gradient Buttons.

Gooey SVG Filter Button

Gooey SVG Filter Button

An interactive “liquid” effect button crafted using SVG feGaussianBlur and feComponentTransfer filters. Cursor movement is tracked with JavaScript and passed to CSS to control a radial gradient.

See the Pen Gooey SVG Filter Button.

Neomorphic Button

Neomorphic Button

A striking button with a neomorphic design and a pulsating element, built using pure CSS variables and pseudo-elements. The hover and active state animations provide a smooth UX, making it perfect for drawing attention to key CTAs.

See the Pen Neomorphic Button.

Button Fill Animation

Button Fill Animation

Using pure CSS and a small JS script for class toggling, this demo shows how to create a button with a unique animation. The main feature is a div with border-radius: 50% and a transform that animates, creating a “filling” effect from within the button.

See the Pen Button Fill Animation.

Smooth Corners with CSS

Smooth Corners with CSS

A progressive technique for creating complex UI shapes using the CSS Houdini Paint API - a squircle is generated by the smooth-corners worklet, surpassing the capabilities of border-radius. The shape’s curvature is dynamically controlled via the --smooth-corners CSS Custom Property, while the effect itself is built with a combination of pseudo-elements, mask, and clip-path.

See the Pen Smooth Corners with CSS.

Hover Effectsexternal link

A dynamic hover effect in pure CSS, where the :has() pseudo-class triggers simultaneous animations: a slide-out tooltip and a smooth icon fill. The tooltip’s content is sourced from a data-tooltip attribute via attr(), and the fill color is flexibly configured with a --bg CSS Custom Property.

Squicles Buttons with Fluid Animationsexternal link

This collection of interactive buttons showcases advanced CSS animation techniques and SVG clip-path integration for unique shapes and micro-interactions. Featuring pulse-beat, fluid scaling, and skew transformations, these components provide a high-performance, JavaScript-free solution for responsive and engaging web interfaces.

Gummy Buttonsexternal link

A “gummy” button animation in pure CSS, where the effect is achieved by simultaneously animating transform: scale() and border-radius. Separate @keyframes are used for the :hover and :active states, creating a unique tactile response.

Buttonexternal link

The main button has a semi-transparent background, the ::before pseudo-element contains the animated gradient, and ::after has a solid dark background that “cuts out” the inner part, leaving only the border visible.

Glass Buttonexternal link

A high-end pure CSS glassmorphism button leveraging Houdini API (@property) and mask-composite for intricate border animations. This snippet features hardware-accelerated 3D perspective transforms and dynamic shadowing, providing a premium tactile UI feel with optimal frontend performance.

Push Button (CSS 3D Button)external link

A skeuomorphic 3D button created with multi-layered box-shadow and linear-gradient to simulate volume, highlights, and shadows. On :hover, the box-shadow styles are animated, creating a “pressed” effect.

Rainbow Shadow Button

Rainbow Shadow Button

Featuring a modern aesthetic, this button generates a soft aura using a blurred and offset pseudo-element whose color dynamics are precisely controlled by the oklch function and longer hue interpolation within the linear-gradient.

See the Pen Rainbow Shadow Button.

Moving Corners with offset-pathexternal link

A sophisticated pure CSS button component leveraging offset-path and offset-distance to animate decorative corner icons during hover states. This snippet showcases fluid typography, modern color-mix() functions, and container queries.