Two overlapped images masked into alternating rounded triangles, demonstrating CSS radius hover animations

Morphing Rounded Triangle Image Mask

demo & code

This is a Morphing Rounded Triangle Image Mask. It relies on advanced CSS mathematics and masking to clip raster graphics into smooth, interlocking geometric shapes. Its function is to replace standard grid layouts with organic, tessellating image tiles that physically react to user interaction.

Technologies:
HTML CSS
Difficulty: Advanced
Browser Support (as of Apr 2026):
Chrome 111+ Edge 111+ Firefox 117+ Safari 16.4+
Features:
Radius Animation Math Functions CSS Masking
Video hero section with custom SVG polygon mask and layered stroke typography intersecting the media

Cinematic Masked Video Hero

demo & code

This is a Cinematic Masked Video Hero. It layers solid and outlined typography over an SVG-clipped video element to create optical depth. Its function is to immediately capture attention on landing, breaking away from standard rectangular layouts through organic polygon masking and staggered motion.

Technologies:
HTML CSS JavaScript
Difficulty: Advanced
Browser Support (as of Apr 2026):
Chrome 90+ Edge 90+ Firefox 89+ Safari 15+
Features:
SVG Masking Layered Text Custom Cursor Intro Loader
Grid gallery of raster images cut into intricate geometric shapes like diamonds and concentric circles using precise vector masking

Complex Geometric Image Masks

demo & code

This is a collection of Complex Geometric Image Masks. It shapes standard rectangular images into precise, multi-part vector forms using a single HTML node. Its function is to break rigid grid layouts and introduce structural visual interest without requiring external SVG assets.

Technologies:
HTML CSS
Difficulty: Intermediate
Browser Support (as of Apr 2026):
Chrome 88+ Edge 88+ Firefox 71+ Safari 13.1+
Features:
Vector Masking Static Geometry
Vector text illustration with a swinging spotlight mask illuminating the letters with a glowing neon effect

Swinging Spotlight Text Reveal

demo & code

This is a Swinging Spotlight Text Reveal. It uses a virtual pendulum mask to selectively illuminate static vector letters as it passes over them. Its function is to direct user focus and add a tactile, environmental lighting effect to primary typographic elements.

Technologies:
HTML CSS JavaScript
Difficulty: Intermediate
Browser Support (as of Apr 2026):
Chrome 49+ Edge 79+ Firefox 51+ Safari 10+
Features:
SVG Masking Glow Filter Pendulum Motion
Grid of scrambled puzzle pieces with organic interlocking edges floating above a dark background

Interactive Drag-and-Drop Jigsaw Puzzle

demo & code

This is an Interactive Drag-and-Drop Jigsaw Puzzle. It dissects a single raster image into an interlocking grid of movable pieces without relying on a single line of JavaScript. Its function is to gamify visual content, converting passive image consumption into a tactile, logic-driven interaction.

Technologies:
Pug SCSS
Difficulty: Advanced
Browser Support (as of Apr 2026):
Chrome 84+ Edge 84+ Firefox 90+ Safari 15.4+
Features:
Zero JS Geometric Masking State Retention
Asymmetric photo gallery with custom organic SVG edges and a full-screen lightbox modal using CSS Grid and JavaScript

Asymmetric SVG Mask Grid Gallery

demo & code

This is an Asymmetric SVG Mask Grid Gallery. It builds a complex, interlocking masonry-style mosaic using CSS Grid areas, applying organic SVG masks to each thumbnail. Its primary function is to break free from rigid, boxy layouts, offering a highly stylized, interactive photo showcase complete with a native JavaScript lightbox modal.

Technologies:
HTML SCSS JavaScript
Difficulty: Advanced
Browser Support (as of Mar 2026):
Chrome 120+ Edge 120+ Firefox 53+ Safari 15.4+
Features:
SVG Masks Grid Areas Lightbox Modal
A horizontal scrollable navigation menu with an active pill indicator sliding behind the text, shown in a resizable container.

Resizing Tab Bar with Anchor Positioning

demo & code

This is a Resizing Tab Bar with Anchor Positioning. It demonstrates a modern approach to building a horizontally scrollable navigation menu with a sliding “active” indicator. Its function is to provide a highly fluid, decoupled visual highlighter that perfectly tracks the currently selected tab — even when the container is resized or scrolled — without relying on heavy JavaScript coordinate calculations.

Technologies:
HTML CSS Babel
Difficulty: Advanced
Browser Support (as of Mar 2026):
Chrome 125+ Edge 125+
Features:
CSS Anchor Positioning Scroll-Driven Animations CSS Masking Mix-Blend-Mode
Digital number counter resembling an odometer, displaying a monetary value with a configuration panel to adjust limits, padding, and easing.

Odometer Number Counter

demo & code

This is an Odometer Number Counter. It visualizes numerical changes (such as MRR, follower counts, or revenue) using a mechanical rolling effect. Its function is to provide a highly configurable, tactile alternative to instant number swapping, bringing physical momentum to digital dashboards.

Technologies:
HTML CSS Babel
Difficulty: Intermediate
Browser Support (as of Mar 2026):
Chrome 90+ Edge 90+ Firefox 88+ Safari 15+
Features:
Odometer Effect CSS Custom Easing 3D Explode View dat.gui Integration
Minimalist 404 error page where mouse movement stamps bird-themed photography through feather-shaped masks on a white canvas

Interactive Feather Reveal 404 Page

demo & code

This is an Interactive Feather Reveal 404 Page. It utilizes the Canvas 2D API to transform a sterile error screen into a generative digital canvas. The component records user movement to stamp intricate feather-shaped paths that alternate between solid black fills and clipped fragments of external bird photography.

Technologies:
HTML SCSS JavaScript
Difficulty: Intermediate
Browser Support (as of Mar 2026):
Chrome 45+ Edge 12+ Firefox 31+ Safari 9+
Features:
Dynamic Clipping Pattern Stamping Event Throttling
Circular layout of avatar images that dynamically expand and separate on hover, featuring a bright gradient background

Dynamic Circular Avatar Gallery

demo & code

This is a Dynamic Circular Avatar Gallery. It arranges a series of profile images into a perfect circle that smoothly expands when interacted with. Its function is to showcase user groups or team members in a compact, engaging format, using cutting-edge CSS math instead of JavaScript to handle complex radial positioning and dynamic item counting.

Technologies:
HTML CSS
Difficulty: Advanced
Browser Support (as of Mar 2026):
Chrome 119+ Edge 119+
Features:
CSS Trigonometry Hover Expansion Dynamic Masking
Compact media player UI card displaying an album cover background with adaptive colored text and a squiggly draggable progress slider

Dynamic Color-Extracting Media Player

demo & code

This is a Dynamic Color-Extracting Media Player. It serves as a fully functional frontend music card component. Its primary function is to fetch real track data from the iTunes API, analyze the retrieved album artwork using the HTML Canvas API, and mathematically adjust its own UI color palette to perfectly complement the image.

Technologies:
HTML SCSS JavaScript
Difficulty: Intermediate
Browser Support (as of Mar 2026):
Chrome 79+ Edge 79+ Firefox 75+ Safari 14+
Features:
Color Extraction API Integration Custom Slider
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.

Technologies:
HTML CSS Babel
Difficulty: Advanced
Browser Support (as of Feb 2026):
Chrome 105+ Edge 105+ Firefox 121+ Safari 15.4+
Features:
3D Rotation Particle System State-Driven Styling
A UI background starting as white at the top with gray grid lines, fading into a vibrant teal-to-purple gradient at the bottom.

Fading Grid Gradient Background

demo & code

This Fading Grid Gradient Background creates a clean, architectural aesthetic suitable for SaaS landing pages or documentation sites. It features a technical vertical grid pattern that gently dissolves into a vibrant teal-and-purple gradient at the bottom. The effect mimics a “horizon” line, adding depth and structure to an otherwise flat page without using any images.

Technologies:
HTML CSS
Difficulty: Beginner
Browser Support (as of Feb 2026):
Chrome 80+ Edge 80+ Firefox 53+ Safari 15.4+
Features:
CSS Masks Stacked Gradients Pattern Generation Responsive Background
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.

Technologies:
HTML CSS
Difficulty: Intermediate
Browser Support (as of Feb 2026):
Chrome 105+ Edge 105+ Firefox 121+ Safari 15.4+
Features:
Trigonometric Math Adjustable Radius Gradient Masking Responsive Geometry
Holographic trading card with 3D tilt effect and iridescent gradients using CSS @property and mask-image for shimmering lines.

Holographic 3D Interactive Card

demo & code

This Holographic 3D Interactive Card is a premium UI component inspired by rare physical trading cards. It features a sophisticated depth effect where the logo floats independently from the iridescent background, reacting dynamically to mouse movements or touch input. The use of modern CSS APIs ensures high-performance rendering of complex gradients and masks, creating a truly immersive “collectible” feel for digital assets.

Technologies:
Pug SCSS JavaScript
Difficulty: Advanced
Browser Support (as of Feb 2026):
Chrome 85+ Edge 85+ Safari 16.4+ Firefox 128+
Features:
3D Perspective Pointer Tracking Iridescent Gradients Holographic Shimmer
Five distinct range slider designs arranged vertically: a red square thumb, a pill shape with a hollow center, a triangular pointer, and a circular button style

Geometric Custom Range Sliders

demo & code

These Geometric Custom Range Sliders push the boundaries of form styling by abandoning the standard “circle on a line” look. Created by CSS math wizard Ana Tudor, this set utilizes SCSS trigonometry to generate complex thumb shapes (like triangles and hollow pills) and CSS Mask Composition to carve out negative space. The result is a set of distinct, scalable inputs that rely on a single HTML <input> tag without any wrapper divs.

Technologies:
Pug SCSS Babel
Difficulty: Advanced
Browser Support (as of Feb 2026):
Chrome 84+ Edge 84+ Firefox 70+ Safari 15.4+
Features:
CSS Masks Mask Composition SCSS Math Gradient Fill
Dark UI cards with angled bottom corners and a passing light beam effect on the border, demonstrating CSS corner-shape.

Beveled Corner Glow Cards

demo & code

This Beveled Corner Glow Card component demonstrates the bleeding edge of CSS UI styling. It primarily utilizes the new corner-shape property to create chamfered (angled) edges without complex clip-paths, while implementing a sophisticated CSS Mask fallback for older engines. The interaction features a “scanning” light beam effect on the border, powered by CSS Houdini for buttery smooth interpolation.

Technologies:
HTML CSS
Difficulty: Advanced
Browser Support (as of Jan 2026):
Chrome 120+ Edge 120+ Firefox 120+ Safari 17+
Features:
CSS Corner Shape Houdini (@property) CSS Masks Progressive Enhancement
Elegant glassmorphism profile card with a blurred image background and fading overlay effect using CSS masks

Glassmorphism Profile Info Card

demo & code

This Glassmorphism Profile Info Card is a high-end UI component that replicates the sleek, frosted-glass aesthetic found in modern operating systems like iOS and macOS. It features a sophisticated interplay between background imagery and foreground content, using advanced CSS masking and backdrop filters to create a natural sense of depth and hierarchy.

Technologies:
HTML SCSS
Difficulty: Intermediate
Browser Support (as of Jan 2026):
Chrome 76+ Edge 79+ Firefox 103+ Safari 9.1+
Features:
Glassmorphism CSS Masking Grid Stacking
A sleek dark card UI with a central logo and a dynamic background of randomized characters revealed by a radial gradient mask following the mouse.

Hyperplexed Evervault Card Hover Effect

demo & code

This Hyperplexed Evervault Card Hover Effect utilizes dynamic character generation and CSS masking to create a high-tech “decryption” visual. It replicates the sophisticated card interactions found on the Evervault website, blending procedural text with mouse-responsive radial gradients.

Technologies:
HTML CSS JavaScript
Difficulty: Intermediate
Browser Support (as of Jan 2026):
Chrome 80+ Edge 80+ Firefox 75+ Safari 13+
Features:
Dynamic Masking Random Character String Mouse Tracking Mix-blend-mode
Retro 80s scene with a neon sun, scrolling grid floor, palm trees, and the back of a DeLorean car driving into the horizon

Pure CSS Synthwave 80s Animation

demo & code

This Pure CSS Synthwave 80s Animation captures the nostalgic aesthetic of the 1980s retrowave genre. It features a complete animated scene: an infinite neon grid, a setting sun with scanlines, shaking palm trees, and a DeLorean driving into the distance. The scene is brought to life with a driving synthwave audio track and intricate CSS-only motion.

Technologies:
Pug SCSS JavaScript
Difficulty: Advanced
Browser Support (as of Jan 2026):
Chrome 60+ Edge 79+ Firefox 55+ Safari 11+
Features:
Infinite Grid Mask Animations Perspective 3D Audio Integration
A spotlight effect where the mouse cursor reveals hidden text and a colorful gradient background.

GSAP Mask Mouse Effect

An intriguing user experience where hidden messages and a vibrant gradient background are revealed only under a “spotlight” following the cursor, featuring expansion animations upon interaction.

See the Pen GSAP Mask Mouse Effect.

An image framed by a decorative, wavy border created with pure CSS masks and gradients.

Images Inside Wiggly Boxes

A decorative image frame created entirely with CSS mask compositing. It combines radial-gradient layers with conic-gradient and the intersect composite operator to sculpt a scalloped, wavy border, while the CSS round() function ensures perfect pattern alignment along the edges.

See the Pen Images Inside Wiggly Boxes.

A full-screen image slider where images transition with a diagonal wipe effect as the user scrolls.

Scroll-Triggered Image Stack with Gradient Mask Reveal

As the user scrolls down, images transition not by simple sliding or fading, but through a complex diagonal “wiping” animation controlled by dynamic gradients, all while the text content remains fixed over the changing background.

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.

Invert Radius Shape with Cool Hover Effect

Invert Radius Shape with Cool Hover Effect

A sophisticated hover effect utilizing CSS Houdini to animate a complex image mask.

Wall of Text: Blogged

Wall of Text: Blogged

A futuristic, interactive blog card featuring AI-generated content fetched dynamically via JavaScript. The layout utilizes advanced CSS techniques like :has() for expandable sections, masking and blend modes for rich graphical elements, and variable-driven cursor tracking animations, creating a dynamic and engaging reading experience.

See the Pen Wall of Text: Blogged.

5¼-Inch Floppy Disk

5¼-Inch Floppy Disk

A purely CSS-generated skeuomorphic representation of a vintage 5.25-inch floppy disk.

See the Pen 5¼-Inch Floppy Disk.

Single Element Progress

Single Element Progress

Elegant, segmented radial charts that smoothly fill upon page load, showcasing the capabilities of modern CSS without JavaScript.

See the Pen Single Element Progress.

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.

Dissolving Image Edges

Dissolving Image Edges

Creating a “grainy” edge effect for a circular image using SVG filters. The effect is achieved through a complex combination of feGaussianBlur and feTurbulence primitives with multiple feComposite operations to control the alpha channel.

See the Pen Dissolving Image Edges.

GSAP Sprite Mask Animation

GSAP Sprite Mask Animation

The demo uses GSAP to programmatically control the CSS mask property and applies the ease: steps() function for precise, frame-by-frame switching between 20 sprite mask states, creating a drawing or layered revelation effect.

See the Pen GSAP Sprite Mask Animation.

Pure CSS Loader #11/2020 - Ripples

Pure CSS Loader #11/2020 - Ripples

Spectacular animated ring loader built on the advanced capabilities of CSS Houdini to define and smoothly transition custom properties, enabling complex and dynamically changing geometry via conic and radial gradients.

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.

A Gallery of Squiggle Images

A Gallery of Squiggle Imagesexternal link

CSS Grid creates a 3‑column base, then each image is individually shifted with translate to break the alignment — resulting in a scattered, organic layout. The wave‑shaped border is drawn using mask with repeating radial gradients; the design is purely visual and static.

Scroll Mask Indicatorsexternal link

A modern and clean way to indicate scrollability: the “fade-to-mist” effect is implemented using mask-image and linear-gradient, while key parameters of the fade phase are precisely tuned using @property.

Avatar Indicators Using CSS Mask and Trigonometry

Avatar Indicators Using CSS Mask and Trigonometryexternal link

Avatar status indicators positioned with CSS masks and trigonometry (cos, sin). Custom properties --status-angle, --status-size, --status-offset control the dot’s position along the circumference; a radial‑gradient mask cuts a hole for the indicator to peek through. JavaScript only tweaks the variables — the logic itself is pure CSS.

CSS Bookmarkexternal link

A state-driven animation, controlled via the “checkbox hack,” showcases the power of CSS @property (Houdini) for smoothly animating gradients and mask properties. A complex multi-layered bookmark shape is created with an SVG mask, while the entire activation effect choreography is built on synchronized @keyframes.

CSS Cutout Button with Mask Compositeexternal link

A creative button demonstrating the power of CSS masking and mask-composite to create a custom geometric “notch” effect. This snippet utilizes SVG masks within pseudo-elements to achieve a futuristic UI interaction with zero extra HTML markup, perfect for modern web design.