Playful vector theme toggle animating a pilot bear flying through clouds in light mode and transitioning into an astronaut bear floating in space in dark mode.

Bouncy Bear Theme Toggle Switch

Bouncy Bear Theme Toggle Switch relies on a clean, accessible HTML <button> to toggle an aria-pressed state, initiating a complex visual narrative that shifts between an aviator bear in light mode and an astronaut bear in dark mode. The animation utilizes modern CSS layout techniques including container-type queries, separate translate declarations, and a heavy-backwards cubic-bezier(.4,-0.3,.6,1.3) curve to achieve physical bounce. While structurally robust, the sheer volume of concurrently transitioning inline SVG paths and scaling stars can generate intensive layout recalculation spikes unless elements are actively isolated via hardware-promoted layers.

Technologies:
HTML CSS Babel
Difficulty:Advanced
Browser Support (as of May 2026):
Chrome Chrome 105+ Edge Edge 105+ Firefox Firefox 110+ Safari Safari 16+
Features:
Dynamic Theme SwitchComplex SVG AnimationCustom Cubic Bezier Easing
Code by: Jhey Jhey
License: MIT
Two sets of circles demonstrating the Ebbinghaus illusion, merging on hover to prove the central circles are identical in size

Ebbinghaus Illusion

This is a Pure CSS Ebbinghaus Optical Illusion. It uses mathematically sized radial gradients on a single element to trick the brain into perceiving two identical circles as different sizes. Its function is to provide an interactive, visual “gotcha” moment, demonstrating how relative scale affects human perception, revealed instantly via a smooth hover transition.

Technologies:
CSS
Difficulty:Intermediate
Browser Support (as of May 2026):
Chrome Chrome 112+ Edge Edge 112+ Firefox Firefox 112+ Safari Safari 16.5+
Features:
Optical IllusionHover RevealSingle DivResponsive
License: MIT

See the Pen Ebbinghaus Illusion.

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 AnimationMath FunctionsCSS Masking
Code by: Temani Afif Temani Afif
License: MIT
Two profile cards (light and dark mode) showing a character portrait. On hover, the image shrinks to a square, revealing the name, bio, and follow button below.

Morphing Profile Card Interaction

This Morphing Profile Card is a sleek UI component perfect for social platforms or team pages. Initially, it presents a large, immersive portrait. Upon interaction (hover or focus), the image smoothly transitions from a portrait ratio to a square, sliding up to reveal detailed profile information and action buttons hidden below. The animation is fluid and adds a layer of discovery to the interface. (Requires: Font Awesome, Google Fonts)

Technologies:
HTML CSS JavaScript
Difficulty:Intermediate
Browser Support (as of Feb 2026):
Chrome Chrome 88+ Edge Edge 88+ Firefox Firefox 87+ Safari Safari 15+
Features:
Aspect-ratio AnimationContent RevealHover EffectDark Mode
License: MIT