Dark UI card featuring a cookie avatar asking 'Can I ask you a question?' with Yes/No buttons, leading to a playful cookie reveal animation.

Playful Multi-Step Interaction

demo & code

This Playful Multi-Step Interaction transforms a boring confirmation dialog into a delightful conversation. It guides the user through a short “chat” with a friendly avatar, using smooth animations and instant feedback. This pattern is perfect for onboarding flows, feedback forms, or any interface that benefits from a human touch, proving that standard interactions can be both functional and fun.

Technologies:
HTML CSS JavaScript
Difficulty: Beginner
Browser Support (as of Feb 2026):
Chrome 75+ Edge 79+ Firefox 48+ Safari 13.1+
Features:
Multi-step Form Flow WAAPI Animations Accessible State Management Focus Handling
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.

Technologies:
HTML CSS
Difficulty: Intermediate
Browser Support (as of Feb 2026):
Chrome 80+ Edge 80+ Firefox 75+ Safari 13+
Features:
Staggered Animation Focus State Interaction Text Swapping Advanced Box Shadows
Interactive gold star rating UI with 5 stars where the selection is handled purely by the CSS :has selector, showing a smooth scale effect on the active star.

Modern CSS Star Rating Component

demo & code

This Modern CSS Star Rating Component represents a major shift in UI development, moving complex logic from JavaScript to pure CSS. It utilizes the powerful :has() selector to track sibling states, allowing the UI to highlight stars both before and after the interaction point. The stars themselves are created using clip-path instead of bulky SVG icons, resulting in a lightweight, scalable, and highly performant rating system.

Technologies:
HTML SCSS
Difficulty: Intermediate
Browser Support (as of Feb 2026):
Chrome 105+ Edge 105+ Firefox 121+ Safari 15.4+
Features:
CSS :has() Logic Clip-path Shapes JS-free Interaction Keyboard Accessible
Dark UI with three radio button options. The selected option has a vibrant pink and blue neon circle drawn around it with an elastic, bouncy animation.

Neon Elastic Stroke Radio Button

demo & code

This Neon Elastic Stroke Radio Button reimagines the standard form input as a high-energy, futuristic interface element. When selected, two overlapping SVG circles (one pink, one blue) animate around the checkmark area with a satisfying elastic “bounce.” The effect mimics a neon light tube flickering on, enhanced by CSS drop-shadow filters and mix-blend-mode for a vibrant, glowing finish.

Technologies:
HTML SCSS JavaScript
Difficulty: Intermediate
Browser Support (as of Feb 2026):
Chrome 50+ Edge 79+ Firefox 50+ Safari 10+
Features:
SVG Stroke Animation GSAP Easing Neon Glow Effect Elastic Motion
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.

Technologies:
HTML CSS JavaScript
Difficulty: Intermediate
Browser Support (as of Feb 2026):
Chrome 80+ Edge 80+ Firefox 75+ Safari 13.1+
Features:
SVG Path Animation Skeuomorphic Design Event-driven Micro-interactions Responsive Scaling
Mobile app interface with a bottom navigation bar that tilts in 3D space when clicked, featuring animated SVG icons.

3D Tilt Mobile Navigation

demo & code

This 3D Tilt Mobile Navigation concept adds a tactile, physical feel to mobile app menus. Unlike standard flat navigations, this component utilizes CSS perspective to “tilt” the entire menu bar towards the user’s touch point, simulating a floating surface. It pairs this effect with delightful SVG icon micro-interactions and a “fly-out” card transition for the content area, creating a highly polished, app-like experience on the web.

Technologies:
HTML SCSS JavaScript
Difficulty: Intermediate
Browser Support (as of Feb 2026):
Chrome 86+ Edge 86+ Firefox 85+ Safari 15.4+
Features:
3D Perspective SVG Morphing Micro-interactions Reflow Triggering
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.

Technologies:
HTML SCSS Babel
Difficulty: Intermediate
Browser Support (as of Feb 2026):
Chrome 60+ Edge 79+ Firefox 50+ Safari 10+
Features:
Visual Merging Adjacent Sibling Selector Negative Margins Fluid Scaling
Minimalist web page with the text 'TOKYO TOWER'. A circular area around the mouse cursor reveals a photograph of the tower and changes the text color to white.

Cursor-Tracking Spotlight Reveal Effect

demo & code

This Cursor-Tracking Spotlight Reveal Effect creates a sophisticated “x-ray” or “flashlight” interaction. Initially, the user sees plain text. As the mouse moves, a circular mask follows the cursor, revealing a hidden image underneath and simultaneously inverting the text color to white within the circle. This technique adds depth and playfulness to portfolio links or gallery items without disrupting the layout.

Technologies:
HTML SCSS JavaScript
Difficulty: Intermediate
Browser Support (as of Jan 2026):
Chrome 88+ Edge 88+ Safari 14+ Firefox 86+
Features:
CSS Clip-Path Mouse Tracking Spotlight Effect Dual-Layer Typography
Minimalist form controls including checkbox, radio button, and toggle switch, featuring organic shapes and blue active states.

Elastic SVG Morphing Form Controls

demo & code

This Elastic SVG Morphing Form Controls set redefines standard UI elements by treating them as organic, malleable shapes. Instead of rigid CSS transitions, it utilizes GSAP’s MorphSVGPlugin to physically warp the vector paths of checkboxes, radio buttons, and switches during interaction. The result is a tactile, “gummy” feel where elements squish upon clicking and snap elastically into their active states.

Technologies:
HTML SCSS JavaScript
Difficulty: Advanced
Browser Support (as of Jan 2026):
Chrome 80+ Edge 80+ Safari 13+ Firefox 75+
Features:
SVG Path Morphing Elastic Easing Pointer Events Fluid State Transitions
Minimalist geometric light bulb illustration with a hanging pull cord that triggers a background color change from white to dark blue.

Interactive CSS Light Bulb Toggle

demo & code

This Interactive CSS Light Bulb Toggle transforms a standard theme switch into a playful interaction. It creates a convincing illusion of a physical pull-cord using standard click events. Rather than using a complex physics engine, it relies on precise timing between mouse/touch events and CSS transforms to mimic the tension and release of a rope when the user clicks the button.

Technologies:
HTML CSS JavaScript
Difficulty: Intermediate
Browser Support (as of Jan 2026):
Chrome 80+ Edge 80+ Safari 13+ Firefox 70+
Features:
CSS Drawing Dark Mode Switch Click Micro-interaction Tactile Feedback
Three color-coded notification cards showing success green, working yellow, and error red states with animated SVG face icons and buttons

Animated Feedback Alert Cards

demo & code

These Animated Feedback Alert Cards provide a high-polish way to communicate application states like success, ongoing processes, and errors. Each card utilizes a cohesive design system of rounded geometry and custom SVG icons that “draw” themselves into existence, offering immediate and delightful tactile feedback to the user.

Technologies:
HAML SCSS
Difficulty: Intermediate
Browser Support (as of Jan 2026):
Chrome 36+ Edge 12+ Firefox 16+ Safari 9+
Features:
SVG Path Drawing Staggered Entrance State-Specific Easing CSS Mixins
Minimalist toggle switch morphing from a sun icon to a moon icon using pure CSS transitions and the :has selector

Pure CSS Morphing Dark Mode Toggle

demo & code

This Pure CSS Morphing Dark Mode Toggle is a sophisticated implementation of a theme switcher that eliminates the need for JavaScript. By utilizing the modern CSS :has() relational selector and complex transform logic, the component morphs a sun icon into a moon icon seamlessly. It offers a premium feel through the use of custom cubic-bezier timing and modular CSS construction.

Technologies:
HTML CSS
Difficulty: Intermediate
Browser Support (as of Jan 2026):
Chrome 105+ Edge 105+ Safari 15.4+ Firefox 121+
Features:
Morphing Animation Parent Selection No JavaScript Accessibility Focus
Dark button with a wand icon; on hover, purple dots float around it like magic dust, and the icon's stars twinkle

GSAP Sparkle Generate Button

demo & code

This GSAP Sparkle Generate Button adds a touch of magic to standard call-to-action elements. Designed for AI generation tools or creative apps, it features a sophisticated hover effect where particles (dots) spawn and float organically around the button. The animation is driven by GreenSock’s Physics2DPlugin, simulating gravity and velocity for a realistic “dust” movement.

Technologies:
HTML SCSS JavaScript
Difficulty: Intermediate
Browser Support (as of Jan 2026):
Chrome 60+ Edge 79+ Firefox 55+ Safari 11+
Features:
Particle System SVG Animation Physics Simulation Timeline Sequencing
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.

Technologies:
HTML CSS JavaScript
Difficulty: Intermediate
Browser Support (as of Jan 2026):
Chrome 49+ Edge 15+ Firefox 43+ Safari 10+
Features:
Hover Expansion Loading State Icon Morphing CSS Animations
Card interface with four colorful hanging game controllers, demonstrating a Vue.js player selection animation with expanding sections

Animated Multi-Player Selection Card

demo & code

This Responsive Vue Multiplayer Select component is a playful UI pattern for game interfaces or configuration forms. It utilizes Vue’s reactivity to dynamically calculate the width of game controller illustrations, ensuring they perfectly fill the container regardless of whether 1, 2, 3, or 4 players are selected. The result is a smooth, accordian-like expansion effect.

Technologies:
JavaScript SCSS HTML
Difficulty: Intermediate
Browser Support (as of Jan 2026):
Chrome 49+ Edge 15+ Firefox 31+ Safari 9.1+
Features:
Dynamic Resizing SVG Theming State Management
Two side-by-side mobile app screens: one showing a list of shoes with Add to Cart buttons, the other displaying the cart contents with item controls

Animated Vue.js Shopping Cart

demo & code

This Animated Vue Shopping Cart Concept demonstrates how to combine reactive frameworks with imperative animation libraries for a seamless e-commerce experience. The component features a split-screen layout: a product catalog on the left and a dynamic shopping cart on the right. It relies on Vue.js for state management and GSAP for high-performance micro-interactions, specifically morphing the “Add to Cart” button into a checkmark icon upon interaction.

Technologies:
JavaScript SCSS
Difficulty: Intermediate
Browser Support (as of Jan 2026):
Chrome 80+ Edge 80+ Firefox 75+ Safari 13.1+
Features:
Micro-Interactions GSAP Integration List Transitions
Dark mode pagination UI with an active blue dot stretching elastically towards the next item, demonstrating GSAP SVG morphing mechanics

Elastic Morphing Dot Pagination

demo & code

This Gooey Pagination Dot Morph transforms a standard carousel indicator into a delightful liquid micro-interaction. Instead of simply fading or sliding, the active dot behaves like a viscous fluid - stretching (squashing) as it moves and snapping back to a perfect circle upon arrival. It utilizes GSAP’s MorphSVGPlugin to interpolate between different SVG path shapes in real-time.

Technologies:
HTML SCSS JavaScript
Difficulty: Intermediate
Browser Support (as of Jan 2026):
Chrome 80+ Edge 80+ Firefox 75+ Safari 13+
Features:
Path Morphing Elastic Easing Directional Awareness Dark Mode
An interactive tooltip that animates differently based on how quickly the user moves the mouse away.

Simple Timeline with Different Enter and Exit Animations

On hover, the tooltip smoothly grows out from the button. A quick exit reverses this, but a delayed exit triggers a dramatic “drop” animation, spinning downwards as if falling.

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.

Range Slider

Range Slider

A highly stylized range slider utilizing box-shadow on the slider thumb to render the track, masked by a clip-path polygon on the parent container to create a unique slanted aesthetic.

See the Pen Range Slider.

Jiggly Radio Buttons

Jiggly Radio Buttons

A playful radio button component featuring a “jelly” physics simulation.

See the Pen Jiggly Radio Buttons.

Animated Share Interaction

Animated Share Interaction

A smooth, tactile micro-interface that saves space by hiding sharing options until needed, delighting the user with high-quality animation.

See the Pen Animated Share Interaction.

CSS Hamburger Icons

CSS Hamburger Icons

A collection of 10 distinct hamburger menu animations, ranging from simple rotations to complex, multi-stage morphs.

See the Pen CSS Hamburger Icons.

High Five Button

High Five Button

A delightful “High Five” interaction button powered by GSAP and MorphSVGPlugin.

See the Pen High Five Button.

Rating Stars

Rating Stars

A sophisticated star rating component featuring fractional fills implemented via CSS clip-path. The JavaScript class generates SVG stars and orchestrates a staggered entrance animation, while SCSS keyframes drive complex scale, rotate, and shockwave effects for a tactile, gamified feel.

See the Pen Rating Stars.

Tab Bar Interaction with Dark Mode

Tab Bar Interaction with Dark Mode

A lively, responsive interface that turns boring navigation into a playful experience, where every user action is rewarded with delightful visual feedback.

Modal v3

Modal v3

A dynamic modal interaction orchestrated by GSAP timelines, featuring a cascading entry sequence. Upon triggering, the button morphs into the modal container, followed by a staggered reveal of content, imagery, and the close control, utilizing back-easing for a playful, spring-like feel.

See the Pen Modal v3.

Sliding Dot Pagination

Sliding Dot Pagination

This pagination component’s core logic is managed in SCSS, where the .active class (toggled by a minimal JavaScript snippet) triggers a transform: translateX() on a .pagination-current element, creating a fluid “sliding dot” effect. The user experience is further enhanced by a series of polished micro-interactions on the :hover and :active states, which use transform transitions with custom cubic-bezier timing functions to create subtle scaling and “squash and stretch” animations.

See the Pen Sliding Dot Pagination.

Drag and Drop State Machine

Drag and Drop State Machine

XState-powered drag & drop implementation with finite state machine. Features visual state transitions, smooth animations, and contextual feedback.

See the Pen Drag and Drop State Machine.

Friendly Donut Toggle Switch

Friendly Donut Toggle Switch

This animated donut character employs multiple GSAP timelines with elastic easing functions to create independent yet synchronized animations for body sway, facial expressions, and arm gestures.

See the Pen Friendly Donut Toggle Switch.

Radio Button Interactions with GSAP

Radio Button Interactions with GSAP

Experience a fluid micro-interaction built with GSAP, where the animation state is fully reversible for a seamless toggle effect. The distinctive bouncy motion is crafted using the back.inOut(3) ease.

Animated Menu Bar with Hamburger

Animated Menu Bar with Hamburger

A demonstration of a two-phase menu reveal animation - a fast transform: translateX shift and a slower width expansion are defined in a single transition property, creating a distinct visual effect.

See the Pen Animated Menu Bar with Hamburger.

Checkbox Hamburger Menu Animation

Checkbox Hamburger Menu Animation

A demonstration of step-by-step CSS transformation to create a cross effect: on :checked, the middle bar either gets opacity: 0 or scales down, while the top and bottom bars simultaneously rotate and translate.

Slider with Animated Icons

Slider with Animated Icons

Smooth visual representation of the slider track fill using the CSS clip-path property and the --slider-percentage variable. The tooltip showing the current value is animated with GSAP, including a slight rotation to simulate “wobbling” during drag.

See the Pen Slider with Animated Icons.

Manual Loader with GSAP Timeline

Manual Loader with GSAP Timeline

A complex GSAP timeline simulating a cursor controlling a loader. The main feature is the use of .tweenTo(pos) to smoothly transition the loader to a set position within a spinning animation, synchronized with the cursor’s movement.

See the Pen Manual Loader with GSAP Timeline.

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.

Tab Bar Animation with MorphSVG

Tab Bar Animation with MorphSVG

A complex micro-animation for a tab bar where GSAP keyframes and morphSVG create smooth, “elastic” transitions between icon states, while state management is implemented in vanilla JS.

See the Pen Tab Bar Animation with MorphSVG.

Wriggly Squiggly Navigation

Wriggly Squiggly Navigation

An animated underline effect for navigation where an SVG path segment smoothly “flows” from one item to another - on click, JS dynamically calculates and sets the stroke-dasharray for the SVG, creating the illusion of movement.

See the Pen Wriggly Squiggly Navigation.

3D Capsule Slider Button

3D Capsule Slider Button

A combination of the ‘checkbox hack’ and 3D transforms to create an interactive neumorphism-style switcher. JavaScript only adds classes, while the entire transform: rotateX() animation and complex box-shadow are controlled by CSS.

See the Pen 3D Capsule Slider Button.

Animated Like Button with GSAP

Animated Like Button with GSAP

This interactive like button uses gsap.timeline() to synchronize a dramatic count transition and a satisfying icon pulse with a large, fading ripple effect applied to the surrounding ring element.

See the Pen Animated Like Button with GSAP.

Navigation Button Interaction

Navigation Button Interaction

A complex micro-animation using GSAP, where a single click triggers a chain of tweens for asynchronous icon movement and simultaneous container pulsation via the scale property.

See the Pen Navigation Button Interaction.

SVG Upload Animation

SVG Upload Animation

An impactful loading icon built on stroke-dashoffset animation for an SVG circle and swinging @keyframes for the icon. A minimalistic jQuery script with setTimeout is used to manage the loading cycle by adding state classes.

See the Pen SVG Upload Animation.

Liquid Gooey UI Elements

Liquid Gooey UI Elements

Explore the powerful tandem of GSAP and CSS Variables, where to/fromTo with keyframes control SVG elements inside Radio/Checkbox/Switch. The animations utilize the feColorMatrix filter (the “Gooey” effect) and SVG transforms to create smoothly “flowing” shapes and stylish toggles.

See the Pen Liquid Gooey UI Elements.

Vue Add to Cart Animation

Vue Add to Cart Animation

This Vue.js component showcases a clean implementation of the “Add to Cart” micro-interaction using reactive data and CSS animation. The main technical feature is the dynamic counter display via a CSS ::before pseudo-element and the count attribute, alongside the “Pop” effect upon update.

See the Pen Vue Add to Cart Animation.

Animated UI Radio Button with CSS Keyframes

Animated UI Radio Button with CSS Keyframes

This custom radio button UI employs pure CSS @keyframes and transform properties to create a dynamic, liquid-like squash-and-stretch animation upon selection - the smooth UI transition is managed by complex jQuery state logic that precisely adds and removes animation classes.

Control Interaction with GSAP

Control Interaction with GSAP

A sleek, animated segmented control using GSAP for smooth slide and a subtle 3D-like tilt effect on click, providing a polished micro-interaction.

See the Pen Control Interaction with GSAP.

Interactive Product Hotspots with GSAP and PIXI.js

Interactive Product Hotspots with GSAP and PIXI.js

Uses the PIXI.js WebGL renderer to draw dynamic, hardware-accelerated connection lines between content hotspots, enhanced by GSAP for the smooth ‘magnetic’ displacement effect upon mouse hover.

Airplane Mode Animation Toggle Switch

Airplane Mode Animation Toggle Switch

A modern toggle switch animation utilizing pure CSS :checked selector states to drive complex plane take-off/landing @keyframes, augmented by vanilla JavaScript’s Web Animations API (WAAPI) for dynamic smoke particle generation and cleanup.

Arrow Icon Animation

Arrow Icon Animation

A technically advanced use of ::before and ::after pseudo-elements to create an arrow. jQuery toggles the .right class, and CSS animates the left and transform: rotate() properties of the pseudo-elements, creating a “switch” or 3D flip effect.

See the Pen Arrow Icon Animation.

Bootstrap 5 Sidebar Menu

Bootstrap 5 Sidebar Menu

A high-quality, responsive interface with detailed, “alive” icons where every user interaction is met with pleasant visual feedback like a ringing bell or flying feathers.

See the Pen Bootstrap 5 Sidebar Menu.

Back To Close

Back To Closeexternal link

Creation of a complex icon from three <span> elements that form a “back” arrow in one state and reconfigure into a cross in another state with the .open class. JavaScript is used solely for toggling the state.