CSS-only typography effect featuring a metallic text gradient and a realistic, skewed, and blurred drop shadow cast onto the background.

Skewed Perspective Drop Shadow Typography

A pure CSS typography effect that simulates a realistic, perspective-cast drop shadow. The main text is styled with a metallic linear gradient using background-clip: text. The shadow is generated via a ::before pseudo-element that duplicates the text content using attr(data-text). This shadow layer is then skewed, scaled down, blurred, and faded out using a linear gradient mask-image to mimic natural light diffusion.

Technologies:
HTML CSS
Difficulty: Beginner
Browser Support (as of Jun 2026):
Chrome Chrome 53+ Edge Edge 79+ Firefox Firefox 53+ Safari Safari 10.1+
Features:
Skewed Shadow Gradient Mask Text Gradient
Code by: Ponycorn Ponycorn
License: MIT
Kanizsa Square optical illusion created with pure CSS conic gradients, rendering subjective white contour boundaries without drawn lines.

Pure CSS Kanizsa Square Optical Illusion

An elegant pure-CSS implementation of the classic Kanizsa Square optical illusion. Requiring zero HTML, the layout combines layered conic and radial gradients inside a single pseudo-element to render four black ‘Pacman’ circles. This arrangement triggers a Gestalt perception where the brain automatically draws subjective white boundary contours to construct a floating foreground square.

Technologies:
CSS
Difficulty: Intermediate
Browser Support (as of Jun 2026):
Chrome Chrome 69+ Edge Edge 79+ Firefox Firefox 83+ Safari Safari 12.1+
Features:
Kanizsa Square Subjective Contours CSS Masking
License: MIT
A realistic tear strip animation using CSS Scroll-Driven Animations and a range input to simulate tearing open a package.

Interactive CSS Tear Strip Animation

Interactive CSS Tear Strip Animation simulates the satisfying physical action of tearing open a cardboard package. It cleverly uses an invisible <input type="range"> linked to the CSS Scroll-Driven Animations API (animation-timeline: --thumb). As the user drags the slider, CSS variables dynamically update clip-path, box-shadow, and transform properties to reveal the content beneath while curling the torn strip. A JavaScript fallback ensures compatibility for browsers without native scroll-timeline support.

Technologies:
HTML CSS JavaScript/Babel
Difficulty: Advanced
Browser Support (as of Jun 2026):
Chrome Chrome 115+ Edge Edge 115+ Firefox Firefox 110+ Safari Safari 16.4+
Features:
Scroll-Driven Animation Range Input Control Realistic Shadows
Code by: Jhey Jhey
License: MIT
An interactive flight path progress range slider using pure CSS trigonometric functions, custom input styling, and container queries.

Pure CSS Trigonometric Flight Range Slider

Pure CSS Trigonometric Flight Range Slider uses CSS math functions like sin() and clamp() to dynamically scale a custom airplane thumb and cast realistic altitude shadows based on the input’s current percentage. It features a responsive container query that swaps the plane for a helicopter on narrow screens, and includes dedicated high-contrast mode styles for robust accessibility.

Technologies:
HTML CSS
Difficulty: Advanced
Browser Support (as of Jun 2026):
Chrome Chrome 111+ Edge Edge 111+ Firefox Firefox 110+ Safari Safari 16+
Features:
Trigonometric Math Container Queries High Contrast Mode
License: MIT
A skeuomorphic 3D rolling ball toggle switch with automatic rollback animation using CSS and JavaScript.

Rollback Ball 3D Toggle Switch

Rollback Ball 3D Toggle Switch is a highly tactile, skeuomorphic switch concept. When clicked, a textured 3D ball realistically rolls across the track, cast-shadows shifting in unison. An ES6 JavaScript class dynamically reads the CSS animation duration, disables the input during the roll, and automatically resets the toggle state once the animation completes. A stellar example of interactive micro-design.

Technologies:
HTML CSS/SCSS JavaScript/TypeScript
Difficulty: Intermediate
Browser Support (as of Jun 2026):
Chrome Chrome 55+ Edge Edge 79+ Firefox Firefox 54+ Safari Safari 10+
Features:
3D Rolling Ball Automatic Rollback Skeuomorphic Shadows
Code by: Jon Kantner Jon Kantner
License: MIT

See the Pen Rollback Ball 3D Toggle Switch.

A retro television illustration created entirely with a single HTML div and complex CSS gradients.

Single Div Vintage TV CSS Illustration

Single Div Vintage TV CSS Illustration is a masterclass in CSS gradient art. Using only one div and its ::before/::after pseudo-elements, it renders a retro television set. The body, screen, antenna, and speaker grill are meticulously drawn using layered linear-gradient, radial-gradient, and repeating-linear-gradient. The mask-image property is cleverly used to carve out the control knobs. A brilliant example of pushing CSS drawing to its limits.

Technologies:
HTML CSS
Difficulty: Advanced
Browser Support (as of Jun 2026):
Chrome Chrome 53+ Edge Edge 79+ Firefox Firefox 53+ Safari Safari 15.4+
Features:
Single Div Pure CSS Gradient Art
License: MIT
CSS-only section dividers featuring a 3D zig-zag paper-cut edge effect using conic gradients and masks.

3D Zig-Zag Edge CSS Dividers

3D Zig-Zag Edge CSS Dividers creates a paper-cut illusion using only CSS. It relies on conic-gradient applied to both the background (for shading) and -webkit-mask (for the jagged shape). CSS variables control the size and depth of the teeth. This approach requires zero extra DOM elements or SVG files, making it a highly optimized solution for section transitions.

Technologies:
HTML CSS
Difficulty: Intermediate
Browser Support (as of Jun 2026):
Chrome Chrome 69+ Edge Edge 79+ Firefox Firefox 83+ Safari Safari 12.1+
Features:
Variable Controlled Single Element 3D Illusion
Code by: Temani Afif Temani Afif
License: MIT

See the Pen 3D Zig-Zag Edge CSS Dividers.

Trigonometric 3D rotating Star Wars theme toggle presenting a sliding lightsaber blade and a spinning Death Star thumb.

3D Star Wars Lightsaber Theme Toggle

3D Star Wars Lightsaber Theme Toggle relies on trigonometric CSS functions sin() and cos() to rotate vector elements along a 3D spherical path as the toggle slides. Custom numeric transitions are facilitated by redefining modern @property rules inside a @layer properties block, animating the --progress variable dynamically across state-driven keyframes. While providing a deeply thematic visual experience, performing continuous trigonometric transformations and animating complex CSS masks can trigger layout rasterization strain on standard devices, requiring GPU acceleration layers to preserve smooth 3D motion.

Technologies:
HTML SCSS JavaScript
Difficulty: Advanced
Browser Support (as of May 2026):
Chrome Chrome 111+ Edge Edge 111+ Firefox Firefox 128+ Safari Safari 16.4+
Features:
3D Rotation Trigonometric CSS
License: MIT
Animated list item slicing in half with a red laser effect before disintegrating using CSS masks and jQuery.

Slice Action List Item

Slice Action List Item achieves a physical text-splitting illusion by duplicating each text node into two overlapping, masked <span> blocks aligned via absolute positioning and CSS pseudo-elements. A jQuery handler triggers a sequential timeline: an SVG checkmark collapses, a dynamically generated absolute .line animates across the list item simulating a laser slice, and then both text halves rotate outward in opposite directions. The implementation provides a distinct, highly engaging micro-interaction, although triggering jQuery .animate() alongside CSS transforms can lead to inconsistent frame timing if layout changes overlap with GPU-accelerated compositing layers. (Requires: jquery.js)

Technologies:
HTML SCSS JavaScript
Difficulty: Intermediate
Browser Support (as of May 2026):
Chrome Chrome 56+ Edge Edge 79+ Firefox Firefox 51+ Safari Safari 10.1+
Features:
Text Slicing SVG Stroke Dash CSS Masking
Code by: Aaron Iker Aaron Iker
License: MIT

See the Pen Slice Action List Item.

Dark themed SVG animation showing a lasso cursor drawing glowing blue outlines around text blobs

Animated SVG Lasso Selection

This is an Animated SVG Lasso Selection. It simulates a digital cursor drawing marquee selections around hidden text nodes, triggering organic pop-in animations and complex spatial transforms. Its function is to provide a highly stylized, cinematic narrative intro, demonstrating the intersection of vector graphics and timeline-based JavaScript animation. (Requires: gsap.js, tweenmax.js, morphSVG.js, drawSVGplugin.js)

Technologies:
HTML CSS JavaScript
Difficulty: Advanced
Browser Support (as of May 2026):
Chrome Chrome 60+ Edge Edge 79+ Firefox Firefox 55+ Safari Safari 11+
Features:
SVG Masking Path Drawing Sequential Animation Timeline Scrubbing
Code by: Chris Gannon Chris Gannon
License: MIT

See the Pen Animated SVG Lasso Selection.

Dark screen with a moving spotlight beam revealing hidden glowing text that says DIGITAL

SVG Flashlight Reveal Effect

This is an SVG Flashlight Reveal Effect. It animates a volumetric cone of light across a dark canvas, using SVG masking to dynamically reveal and illuminate hidden text. Its function is to create a cinematic, narrative-driven focal point, turning standard typography into an exploratory visual experience.

Technologies:
HTML CSS JavaScript
Difficulty: Intermediate
Browser Support (as of May 2026):
Chrome Chrome 51+ Edge Edge 79+ Firefox Firefox 54+ Safari Safari 10+
Features:
SVG Masking Animated Gradients Stroke Animation
Code by: isladjan isladjan
License: MIT

See the Pen SVG Flashlight Reveal Effect.

Dark screen with a circular glowing torchlight cutout revealing a dungeon map, demonstrating a cursor tracking mask effect

Flickering Torchlight Reveal Overlay

This is a Flickering Torchlight Reveal Overlay. It pairs a custom cursor with a dynamic radial mask to selectively expose underlying content. Its function is to restrict visibility to the immediate cursor vicinity, replacing open layouts with an exploratory, constrained interaction model.

Technologies:
HTML CSS JavaScript
Difficulty: Beginner
Browser Support (as of May 2026):
Chrome Chrome 80+ Edge Edge 80+ Firefox Firefox 75+ Safari Safari 14+
Features:
Cursor Tracking CSS Masking Flicker Animation Dynamic Radius
Code by: Nyxorgos Nyxorgos
License: MIT
3x3 interlocking image grid with wavy scalloped borders created using CSS mask and radial gradients

Interlocking Wavy Image Grid

This is an Interlocking Wavy Image Grid. It applies procedural scalloped edges to raster images and shifts them into a tight, puzzle-like masonry formation. Its function is to break rigid, rectangular bounds in visual galleries, converting standard blocks into an organic, cohesive texture.

Technologies:
HTML CSS
Difficulty: Advanced
Browser Support (as of May 2026):
Chrome Chrome 111+ Edge Edge 111+ Firefox Firefox 112+ Safari Safari 15.4+
Features:
Wavy Borders CSS Masking Math Functions Interlocking Layout
Code by: Temani Afif Temani Afif
License: MIT

See the Pen Interlocking Wavy Image Grid.

Horizontal text marquee with faded edges, demonstrating an infinite scrolling animation using pure CSS

Pure CSS Faded Infinite Text Marquee

This is a Faded Infinite CSS Text Marquee. It creates a continuous, horizontal scrolling display for text elements using advanced CSS animation math. Its function is to showcase lists of keywords, tags, or announcements in a constrained space, using gradient masks to seamlessly blend the moving text into the background.

Technologies:
Pug SCSS
Difficulty: Intermediate
Browser Support (as of May 2026):
Chrome Chrome 104+ Edge Edge 104+ Firefox Firefox 104+ Safari Safari 14.1+
Features:
Infinite Loop CSS Masking Negative Delays
Code by: Ana Tudor Ana Tudor
License: MIT
Interactive 3x3 grid of SVG circles revealing colorful animated shapes with a turbulent shadow effect tracking the mouse

Kinetic SVG Parallax Grid Mask

This is a Kinetic SVG Parallax Grid Mask. It utilizes mathematical cursor tracking to offset a vectorized masking layer, revealing a secondary layer of animated, stepped shapes beneath. Its function is to create a playful, exploratory spatial interaction that rewards user movement without relying on heavy WebGL contexts. (Requires: GSAP)

Technologies:
HTML CSS JavaScript
Difficulty: Advanced
Browser Support (as of Apr 2026):
Chrome Chrome 60+ Edge Edge 79+ Firefox Firefox 55+ Safari Safari 12+
Features:
Parallax Masking Cursor Tracking Turbulence Filter
Code by: Tom Miller Tom Miller
License: MIT

See the Pen Kinetic SVG Parallax Grid Mask.

Interactive typography mask revealing a WebGL liquid distortion hover effect on a background image

WebGL Liquid Distortion Typography Mask

This is a WebGL Liquid Distortion Typography Mask. It uses fluid simulation to distort a background image, revealed only through a vector cutout. Its function is to transform standard text headers into deeply interactive, kinetic focal points. (Requires: OGL.js, TweenMax.js)

Technologies:
HTML SCSS Babel
Difficulty: Advanced
Browser Support (as of Apr 2026):
Chrome Chrome 60+ Edge Edge 79+ Firefox Firefox 55+ Safari Safari 12+
Features:
Fluid Simulation RGB Shift Custom Shaders Pointer Tracking
License: MIT
Two overlapped images masked into alternating rounded triangles, demonstrating CSS radius hover animations

Morphing Rounded Triangle Image Mask

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 Chrome 111+ Edge Edge 111+ Firefox Firefox 117+ Safari Safari 16.4+
Features:
Radius Animation Math Functions CSS Masking
Code by: Temani Afif Temani Afif
License: MIT
Video hero section with custom SVG polygon mask and layered stroke typography intersecting the media

Cinematic Masked Video Hero

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. (Requires: gsap-js)

Technologies:
HTML CSS JavaScript
Difficulty: Advanced
Browser Support (as of Apr 2026):
Chrome Chrome 90+ Edge Edge 90+ Firefox Firefox 89+ Safari Safari 15+
Features:
SVG Masking Layered Text Custom Cursor Intro Loader
Code by: Paul Roger Paul Roger
License: MIT

See the Pen Cinematic Masked Video Hero.

Grid gallery of raster images cut into intricate geometric shapes like diamonds and concentric circles using precise vector masking

Complex Geometric Image Masks

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 Chrome 88+ Edge Edge 88+ Firefox Firefox 71+ Safari Safari 13.1+
Features:
Vector Masking Static Geometry
Code by: Chris Smith Chris Smith
License: MIT

See the Pen Complex Geometric Image Masks.

Vector text illustration with a swinging spotlight mask illuminating the letters with a glowing neon effect

Swinging Spotlight Text Reveal

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. (Requires: gsap-js)

Technologies:
HTML CSS JavaScript
Difficulty: Intermediate
Browser Support (as of Apr 2026):
Chrome Chrome 49+ Edge Edge 79+ Firefox Firefox 51+ Safari Safari 10+
Features:
SVG Masking Glow Filter Pendulum Motion
Code by: Chris Gannon Chris Gannon
License: MIT

See the Pen Swinging Spotlight Text Reveal.

Grid of scrambled puzzle pieces with organic interlocking edges floating above a dark background

Interactive Drag-and-Drop Jigsaw Puzzle

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 Chrome 84+ Edge Edge 84+ Firefox Firefox 90+ Safari Safari 15.4+
Features:
Zero JS Geometric Masking State Retention
Code by: Temani Afif Temani Afif
License: MIT
Asymmetric photo gallery with custom organic SVG edges and a full-screen lightbox modal using CSS Grid and JavaScript

Asymmetric SVG Mask Grid Gallery

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 Chrome 120+ Edge Edge 120+ Firefox Firefox 53+ Safari Safari 15.4+
Features:
SVG Masks Grid Areas Lightbox Modal
Code by: yoksel yoksel
License: MIT
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

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. (Requires: Normalize.css)

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

Odometer Number Counter

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. (Requires: React, ReactDOM, dat.gui)

Technologies:
HTML CSS Babel
Difficulty: Intermediate
Browser Support (as of Mar 2026):
Chrome Chrome 90+ Edge Edge 90+ Firefox Firefox 88+ Safari Safari 15+
Features:
Odometer Effect CSS Custom Easing 3D Explode View dat.gui Integration
Code by: Jhey Jhey
License: MIT

See the Pen Odometer Number Counter.

Minimalist 404 error page where mouse movement stamps bird-themed photography through feather-shaped masks on a white canvas

Interactive Feather Reveal 404 Page

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. (Requires: GSAP, Lodash)

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

Dynamic Circular Avatar Gallery

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 Chrome 119+ Edge Edge 119+
Features:
CSS Trigonometry Hover Expansion Dynamic Masking
Code by: Temani Afif Temani Afif
License: MIT
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

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 Chrome 79+ Edge Edge 79+ Firefox Firefox 75+ Safari Safari 14+
Features:
Color Extraction API Integration Custom Slider
Code by: Haydn Haydn
License: MIT
Dark pill-shaped button with a glowing cosmic hover effect revealing a 3D rotating particle galaxy inside

Cosmic 3D Galaxy Button

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 Chrome 105+ Edge Edge 105+ Firefox Firefox 121+ Safari Safari 15.4+
Features:
3D Rotation Particle System State-Driven Styling
Code by: Jhey Jhey
License: MIT

See the Pen Cosmic 3D Galaxy Button.

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

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 Chrome 80+ Edge Edge 80+ Firefox Firefox 53+ Safari Safari 15.4+
Features:
CSS Masks Stacked Gradients Pattern Generation Responsive Background
Code by: kencode7 kencode7
License: MIT
Equilateral triangular images with soft rounded corners achieved through CSS masking and trigonometric math, overlapping on a vibrant background.

Rounded Triangle CSS Image Mask

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 Chrome 105+ Edge Edge 105+ Firefox Firefox 121+ Safari Safari 15.4+
Features:
Trigonometric Math Adjustable Radius Gradient Masking Responsive Geometry
Code by: Temani Afif Temani Afif
License: MIT