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+
Dark UI button with a metallic linear gradient shine that follows the cursor position, featuring radial glows on the edges.

Mouse-Tracking Linear Shine Button

demo & code

This Mouse-Tracking Linear Shine Button adds a high-end, tactile feel to your UI. Unlike standard hover effects that simply swap colors, this component tracks the user’s cursor position to drag a realistic light reflection across the button’s surface. Built with React and Tailwind CSS, it utilizes reactive CSS variables to control gradient positions, creating a dynamic lighting effect that feels physical and responsive.

Level: Intermediate
Browser Support: Chrome 49+, Edge 79+, Firefox 32+, Safari 8+
Stylized night scene drawn in CSS, featuring yellow flowers blooming, green grass swaying, and translucent bubbles with red hearts floating upwards.

Blooming Night Garden Animation

demo & code

This Blooming Night Garden Animation is a delightful example of “CSS Art,” where HTML elements are shaped into complex illustrations using code. It features a complete scene with a textured night sky, procedurally blooming flowers, swaying grass, and a particle system of floating hearts, all brought to life through choreographed CSS keyframes.

Level: Intermediate
Browser Support: Chrome 100+, Edge 100+, Safari 14+, Firefox 90+
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.

Level: Intermediate
Browser Support: Chrome 80+, Edge 80+, Firefox 75+, Safari 13+
Grid of dark cards; the hovered card has a subtle glowing white border that follows the mouse cursor, created by CSS radial gradients

Stripe-Inspired Cards Hover Effect

demo & code

This Stripe-Inspired Cards Hover Effect replicates the sophisticated “flashlight” border interaction seen on modern SaaS websites. Instead of a simple color change, a soft radial gradient follows the user’s mouse cursor across a grid of cards. This creates a cohesive, lighting-aware interface where elements seem to illuminate as you interact with them.

Level: Intermediate
Browser Support: Chrome 49+, Edge 15+, Firefox 31+, Safari 9.1+
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 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.

Uninvert Kitty

Uninvert Kitty

An interactive spotlight reveal where the cursor controls a negative mask and a physical 3D tilt effect.

See the Pen Uninvert Kitty.

CSS-Only Pattern: Circles

CSS-Only Pattern: Circles

An elegant, geometrically complex background in blue tones that looks like a vector illustration but weighs only a few bytes and scales easily.

See the Pen CSS-Only Pattern: Circles.

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.

Scalable CSS Radial Gradient Pattern

Scalable CSS Radial Gradient Pattern

A pure CSS pattern created by overlaying five radial-gradient declarations on a single element. The main feature is that all ring sizes and their count depend on a couple of CSS variables, making the pattern fully scalable using calc().

Interactive Card Glow Effect

Interactive Card Glow Effect

A modular React card component where a single pointermove listener updates CSS variables, powering a customizable, multi-layer glow and spotlight effect.

See the Pen Interactive Card Glow Effect.

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.

Multi-Card Spotlight Effect

Multi-Card Spotlight Effect

An interactive 3D card effect where JavaScript tracks pointermove, calculates the relative cursor position, and passes it to --ratio-x and --ratio-y CSS variables, while CSS uses calc() to drive rotateX and rotateY.

See the Pen Multi-Card Spotlight Effect.

Realistic MPK Mini MIDI Controller in Pure CSS

Realistic MPK Mini MIDI Controller in Pure CSS

Pure CSS skeuomorphism in action - a complete replica of a MIDI controller where every knob, pad, and key is drawn by layering dozens of gradients and shadows.

Stacked Poetic Cardsexternal link

A dynamic card carousel/stack technically driven entirely by CSS custom properties and the :has() selector; interactivity is achieved via the “Radio Button Hack” (hidden input[type="radio"]), where selecting one card recalculates variables for all others, creating a smooth 3D transformation effect and dynamic stacking order; a decorative dotted background and a responsive grid layout complement the functionality.

Upload UI

Upload UI

An adaptive UI component of cards for different states (loading, success, error), built on a scalable SCSS architecture. Color schemes are managed by variables, a custom @mixin handles the adaptive Flexbox layout via media queries, and a radial-gradient creates the glow effect.

See the Pen Upload UI.

Cosmic 404 Page

Cosmic 404 Page

A modern, atmospheric interface that transforms a standard error into a pleasant visual experience, where content gently floats above a deep, iridescent cosmic background.

See the Pen Cosmic 404 Page.

iPhone 14

iPhone 14

A minimalist gallery showcasing iPhone 14 wallpaper concepts, crafted entirely in CSS. Each “phone” mockup uses a split-screen design with multi-stop radial gradients and CSS custom properties to generate vibrant, glowing orb-like backgrounds.

See the Pen iPhone 14.

Weather Widget

Weather Widget

A vivid weather widget styled with complex CSS radial gradients to mimic a sky backdrop. Classic float-based layout structures the content, while @keyframes bring life to FontAwesome icons, animating the sun’s rotation and the clouds’ drifting motion."

See the Pen Weather Widget.

Eclipse Badgeexternal link

An “eclipse” or running glint effect implemented in pure CSS. The @keyframes eclipse animation infinitely moves a white div from one edge to the other using transform: translateX, creating the illusion of a moving light source.