Minimalist dark interface featuring the word 'Creativity' in motion, utilizing a dual-layer clipping mask effect where the text fills with white as it slides and rotates

Kinetic clip-path Text Rotator

demo & code

Static text is a relic of print media. In the digital realm, typography should possess momentum and weight. This component transforms a standard headline into a kinetic event. By synchronizing rotation with advanced clipping masks, we create the illusion of text being physically “printed” or “wiped” into existence at high velocity. It is visceral, rhythmic, and designed to command attention without screaming.

Level: Intermediate
Browser Support: Chrome 60+, Edge 79+, Firefox 60+, Safari 11+
A UI tool displaying a purple pentagon shape created with CSS clip-path, alongside a code block showing the polygon coordinates

Clip-Path Shapes Explorer

demo & code

This Clip-Path Shapes Explorer serves as both a learning tool and a generator for CSS polygons. It allows users to cycle through a library of pre-defined shapes (triangles, hexagons, stars, etc.) and instantly see the result rendered in the browser. The tool also provides the exact CSS code needed to recreate the shape, complete with syntax highlighting.

Level: Intermediate
Browser Support: Chrome 55+, Edge 79+, Firefox 54+, Safari 10.1+
Neumorphic navigation bar with a circular glass overlay magnifying and coloring the active home icon

Magnifying Glass Navigation

demo & code

Navigation should not be a static list; it should be a spotlight on user intent. This component reimagines the humble tab bar as a physical instrument. By simulating a magnifying glass that glides over options, we create a tactile sense of selection. It transforms the active state from a mere color change into a focused, immersive event.

Level: Intermediate
Browser Support: Chrome 55+, Edge 79+, Firefox 54+, Safari 10+
Five-star rating UI where the selected stars are filled yellow and bounce playfully, while unselected stars remain grey dots

Elastic Animated Star Rating

demo & code

This Elastic Animated Star Rating component turns a mundane feedback form into a delightful micro-interaction. Instead of simple color changes, the stars spring to life with a satisfying “elastic” pop when clicked. The animation logic handles both filling (bouncing in) and emptying (shrinking away) states, making the interaction feel physically responsive and engaging.

Level: Intermediate
Browser Support: Chrome 55+, Edge 79+, Firefox 54+, Safari 10.1+
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.

Level: Intermediate
Browser Support: Chrome 105+, Edge 105+, Firefox 121+, Safari 15.4+
Equilateral triangular images with soft rounded corners achieved through CSS masking and trigonometric math, overlapping on a vibrant background.

Rounded Triangle CSS Image Mask

demo & code

This Rounded Triangle CSS Image Mask offers a mathematically perfect way to shape visuals into equilateral triangles with soft, professional edges. It is an ideal choice for high-end portfolio galleries, creative team sections, or landing pages where standard rectangular or circular crops feel too conventional. By leveraging modern CSS math, the shape remains perfectly symmetrical regardless of the image dimensions.

Level: Intermediate
Browser Support: Chrome 105+, Edge 105+, Firefox 121+, Safari 15.4+
Full-screen red navigation menu revealing through four vertical staggered panels using CSS clip-path and GSAP.

Staggered Panel Curtain Menu

demo & code

The Staggered Panel Curtain Menu is a creative full-screen navigation concept that breaks the traditional “fade-in” mold. It uses a series of vertical panels that drop down at slightly different intervals, creating a sophisticated “curtain” reveal. This effect is achieved by combining the precision of GSAP with the flexibility of CSS clip-path and variable fonts, making it an ideal choice for high-end creative portfolios or modern agency websites.

Level: Intermediate
Browser Support: Chrome 80+, Edge 80+, Firefox 75+, Safari 13.1+
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.

Level: Intermediate
Browser Support: Chrome 88+, Edge 88+, Safari 14+, Firefox 86+
A scenic forest landscape illustration that tilts and rotates in 3D space with mouse movement.

3D Landscape

A scenic forest landscape with a house that smoothly tilts and rotates following the mouse movement, revealing the scene’s depth through a parallax effect.

See the Pen 3D Landscape.

A highly detailed vector-style portrait of Lionel Messi created entirely with pure CSS.

CSS Messi

A highly detailed, scalable vector-style portrait of an athlete created entirely with CSS clip-path polygons, layering shapes, shadows, and highlights without any image files or SVG tags.

See the Pen CSS Messi.

A pure CSS illustration of the cartoon character Dipper Pines from Gravity Falls.

Dipper Pines from Gravity Falls

A pure CSS character illustration of Dipper Pines, constructed from geometric primitives using absolute positioning and vmin units for responsiveness. The design leverages border-radius, transform, clip-path masking, and pseudo-elements to shape detailed features like the signature pine tree hat and hair, all styled with CSS variables and a custom web font.

See the Pen Dipper Pines from Gravity Falls.

A cute cartoon illustration of a giraffe created entirely with pure CSS.

Giraffe

A pure CSS cartoon illustration of a giraffe constructed from geometric primitives using absolute positioning. It leverages box-shadow for efficient pattern repetition (spots, clouds), clip-path for complex shapes like the mane, and CSS variables for a consistent pastel color palette.

See the Pen Giraffe.

A detailed illustration of a house with surrounding trees and foliage, created entirely with pure CSS.

Line House

A pure CSS illustration of a house constructed from geometric primitives using clip-path for complex shapes and transform for perspective. It features a warm color palette managed via CSS variables, extensive drop-shadow usage for foliage density, and linear-gradient for detailed window reflections.

See the Pen Line House.

A detailed vector-style portrait of a person created entirely with pure CSS.

Profile CSS Drawing

A stylish, detailed vector-style portrait with depth and shadows, fully implemented using pure CSS gradients and clipping paths.

See the Pen Profile CSS Drawing.

Images displayed in a modern squircle shape with a soft drop shadow, similar to iOS icons.

Squircle Image Web Component

Images take on an aesthetic, modern squircle shape (resembling iOS icons) with a soft drop shadow that perfectly follows their contour.

See the Pen Squircle Image Web Component.

A monochrome illustration of a knight in armor holding a shield and sword, created entirely with pure CSS.

Warrior

A pure CSS illustration of a knight constructed from geometric primitives. It employs repeating-linear-gradient for shield textures, clip-path for armor shaping, and extensive box-shadow duplication to render limbs and details efficiently, creating a stark, high-contrast monochrome aesthetic.

See the Pen Warrior.

A navigation menu where a spotlight effect highlights the currently active menu item.

Animated Navigation

A spotlight navigation menu where the active state is highlighted by a moving “light beam” element.

See the Pen Animated Navigation.

An image of a burger being revealed through an animated, burger-shaped SVG mask.

Simple SVG Clip-Path Reveal

A rhythmic animation where an image is revealed through a burger-shaped SVG clip mask, with layers scaling in sequence via GSAP.

See the Pen Simple SVG Clip-Path Reveal.

Image Hover Effect

Image Hover Effect

A unique, visually impressive effect where the user moves a “liquid,” morphing lens to compare two scenes, demonstrating advanced use of SVG and DOM manipulation for visual UX.

See the Pen Image Hover Effect.

Invisible Gallery

Invisible Gallery

An emotionally charged and technically complex component that uses kinetic animations simulating digital glitches or geometric transformations to dramatically reveal hidden content.

See the Pen Invisible Gallery.

Responsive CSS Grid: Books

Responsive CSS Grid: Books

A unique, dynamic, and responsive collage of images that uses advanced CSS techniques to create a 3D-like geometric pattern.

See the Pen Responsive CSS Grid: Books.

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.

Amateur Radio Badge 3D

Amateur Radio Badge 3D

A highly sophisticated holographic badge simulation utilizing CSS 3D transforms and layered mix-blend-mode effects. JavaScript tracks mouse movement to dynamically update CSS variables, driving complex parallax shifts, lighting gradients, and SVG-masked glares for a realistic, tactile depth experience.

See the Pen Amateur Radio Badge 3D.

Full Screen Slider

Full Screen Slider

A cinematic landing page powered by GSAP ScrollSmoother and Observer plugins. It features a complex preloader sequence transitioning into a full-screen slider where images are revealed via intricate clip-path polygon animations triggered by scroll gestures.

See the Pen Full Screen Slider.

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.

IKEA Room Gallery Redesign

IKEA Room Gallery Redesign

A sophisticated React/Redux e-commerce SPA featuring seamless page transitions powered by GSAP. It utilizes clip-path animations for cinematic reveals and the Draggable plugin for interactive product grids, creating a fluid, app-like shopping experience.

See the Pen IKEA Room Gallery Redesign.

Kill the Ketchup

Kill the Ketchup

A powerful visual effect of a red liquid “flood” filling the screen, suitable for loading screens, game level transitions, or creative overlays.

See the Pen Kill the Ketchup.

Slider #2

Slider #2

An immersive, cinematic slider that feels like a high-budget interactive installation, thanks to its complex animations, custom cursor, and comprehensive input support.

See the Pen Slider #2.

Star Rating with CSS :has()

Star Rating with CSS :has()

A fully functional rating widget that responds to hover and click events, illuminating the appropriate number of stars and updating the digit on the right, creating a dynamic interface feel without a single line of JS.

See the Pen Star Rating with CSS :has().

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.

Animated Portfolio with SVG ClipPath Hover Effect

Animated Portfolio with SVG ClipPath Hover Effect

This interactive portfolio showcases a masonry-style layout built with two overlapping CSS Grids, where grid-row: span and grid-column: span create the complex pattern. The key interaction is a unique “spotlight” reveal effect on hover, powered by a JavaScript-controlled SVG <clipPath> that dynamically updates the position of a <circle> mask to follow the mouse.

Pac-Man Password Reveal with GSAP

Pac-Man Password Reveal with GSAP

This component provides a delightful user experience by replacing the standard “show/hide” password icon with animated Pac-Man characters. The entire interaction is driven by two GSAP timelines, which not only move the characters but also change the input’s background and letter spacing, creating a fully immersive and playful UI.

Animated Slider with Morphing Effects

Animated Slider with Morphing Effects

This cinematic slider interface leverages GSAP timelines and sophisticated clip-path polygon transformations to orchestrate fluid transitions between full-screen slides and an overlay navigation system.

100-Year Clock Wheel

100-Year Clock Wheel

This demo showcases a multi-ring clock with rotating elements where each date/time value is generated and positioned using trigonometry. A key feature is the dynamic localization of month and day names using the Intl.DateTimeFormat API and language selection via the native <dialog> element.

See the Pen 100-Year Clock Wheel.

Interactive Spotlight Effect

Interactive Spotlight Effect

An interactive “spotlight” effect created with clip-path: circle(), whose position is controlled via CSS variables. JavaScript tracks the cursor and updates the variables inside a requestAnimationFrame loop for a smooth and performant animation.

See the Pen Interactive Spotlight Effect.

3D Toggle On/Off Switch v2

3D Toggle On/Off Switch v2

The use of gradients to create a realistic metallic effect and highlights on the button. Various types of linear-gradient and radial-gradient are applied to create a multi-layered background, and clip-path precisely clips the shapes of the pseudo-elements.

See the Pen 3D Toggle On/Off Switch v2.

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.

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.

Pagination with Morphing Numbers

Pagination with Morphing Numbers

This interactive pagination features a fluid numerical transition achieved solely through CSS clip-path animations, where JavaScript toggles the body class to trigger the complex morphing sequence on the SVG elements.

See the Pen Pagination with Morphing Numbers.

Lighthouse Single-Div CSS Illustration

Lighthouse Single-Div CSS Illustration

The entire scene is constructed from a combination of gradients (linear-gradient/radial-gradient) and precise element positioning using background-position.

Pure CSS 3D Animated Cat Model

Pure CSS 3D Animated Cat Model

Complex yet high-performance 3D rendering in the browser: the model is built on CSS Box Model Hacking principles, where each polygon is positioned in space using translate and rotate for continuous 360-degree animation.

See the Pen Pure CSS 3D Animated Cat Model.

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.

CSS Accordion with Custom Animated Arrows

CSS Accordion with Custom Animated Arrows

A pure CSS accordion based on native <details>/<summary> elements, where the standard marker is hidden, and a custom animated chevron arrow is created and controlled exclusively via clip-path: polygon() and the rotate property upon expansion.

Photo Gallery Grid Animation with CSS Clip-Path

Photo Gallery Grid Animation with CSS Clip-Path

A showcase of the creative application of clip-path to create an “unfolding” image effect on hover, where the interaction not only changes the shape but also uses z-index to elevate the element and overlap neighboring tiles.

Responsive Speech Bubbles using CSS Container Queries

Responsive Speech Bubbles using CSS Container Queries

A stylish, pure CSS solution for creating speech bubbles with custom tails using the :after pseudo-element and the advanced clip-path: polygon() property to give the content frame a unique, angled edge shape.

Dynamic Carousel Slider with Infinite Scroll

Dynamic Carousel Slider with Infinite Scroll

A full-screen, scroll-hijacked slider orchestrated by a single GSAP timeline, achieving a sophisticated transition effect by simultaneously animating clip-path on image layers and translating text elements.

Animated Apple Tear Strip with React and GSAP

Animated Apple Tear Strip with React and GSAP

This interactive animation, built with React and GSAP, lets the user “tear” a stylized seal. The complex effect is achieved by tracking cursor movement with Draggable.create() and then smoothly changing properties like clip-path and box-shadow to simulate the tear.

1980's Pop Magazine Pullquote

1980's Pop Magazine Pullquote

This demo showcases advanced CSS features like clip-path and shape-outside for creating non-rectangular layouts, while leveraging modern CSS units like clamp() and dvh for a fully responsive design across devices.

See the Pen 1980's Pop Magazine Pullquote.

CSS Glitch Image Effect

CSS Glitch Image Effect

The key feature is the control of animation parameters via CSS variables, which allows for easy changes to the speed and intensity of the glitch. The animation itself is built on three layered elements, each with unique offsets, shadows, and clipping animations (@keyframes glitch-top/bottom).

See the Pen CSS Glitch Image Effect.

Cyberpunk Glitch Input

Cyberpunk Glitch Input

Here is an advanced example of an interactive UI element built entirely with CSS. The demo is technically notable for its approach to visualizing activity: it uses pseudo-elements and CSS variables to create glow effects, scanning lines, and a “data stream” that activates on input focus.

See the Pen Cyberpunk Glitch Input.