← Back home
Animations.
Button animations that play on their own, and app experiences you can use right away. Choose Interact on a button animation to try it yourself.
Your device is set to reduce motion, so the button animations start still. Choose Interact on any of them to try it.
Button Animations
This animation needs JavaScript.
Build a single-file HTML/CSS/JS hero section on an off-white background with one centred pill button labelled "let's collaborate" (white, bold text). The button should look like a glossy black liquid blob, not a flat button — use WebGL or canvas for the liquid surface with soft reflections and a subtle shadow. Interaction: - On hover, the liquid should come alive: thin sticky strands stretch out from the button edge toward the cursor, like thick ink being pulled. - If the cursor moves far enough, the strands snap, drip back, and the surface heals smoothly. - On click, give a satisfying press, then a splash of black droplets that flies out and merges back into the button. Keep motion organic and springy, avoid mechanical easing. Make it responsive and touch-friendly, respect prefers-reduced-motion, and keep it smooth at 60fps.
This animation needs JavaScript.
Create a single-file HTML/CSS/JS button demo: a "let's collaborate" pill button made of glossy black organic, living material with deep crimson accents, on a light background. Behaviour: - Idle: the surface slowly ripples, like something alive is moving underneath. Faint crimson veins pulse through the black. - Hover: aggressive branching tendrils whip out from the button toward the cursor, splitting into thinner branches with sharp tips, black with crimson cores. - Click: the button tenses, then bursts — tendrils lash outward and crimson splatter sprays, then everything retracts and re-forms into the button. The material should feel wet, glossy and threatening rather than cute. Choose a rendering approach (canvas/SVG/WebGL) that gives smooth organic shapes. Make it responsive and mobile-friendly, and respect reduced motion.
This animation needs JavaScript.
Build a single-file HTML/CSS/JS demo with a dark, cinematic background and a centred metallic pill button labelled "let's collaborate". Before the first click, the button must look completely plain. Hover (default state only): a subtle dual-energy glow — warm red on the left half, arcane green on the right — plus a faint ring of glowing runes around the button. Hover must never start the transformation. - Sharp, 3D red-and-gold armour plates fly in from off-screen and lock around the button with seams, rivets, bevels and specular highlights. - Small warm glowing cores power up on the armour. - A red holographic HUD assembles behind the button: concentric technical rings, tick marks, a scanning sweep, small read-outs, slow rotation. - Two small jet thrusters deploy under the button and fire flames (no smoke in this phase). - Hold the completed armour for a few seconds. - The HUD and thrusters vanish, and the armour breaks apart and falls away. - The button becomes dark forged silver-black metal with a green glowing seam. - Dense, layered green smoke rolls in, branching green lightning flashes and lights up the smoke, and a front-facing glowing rune circle rotates behind the button. After the sequence, show small controls: Armour / Arcane (switch between the final forms with a smooth transition) and Reset (back to the plain button). Use canvas for the effects, keep it smooth on mobile, and respect reduced motion.
This animation needs JavaScript.
Create a single-file HTML/CSS/JS demo on a dark background with a black glossy pill button "let's collaborate" with a thin crimson outline. Natural-looking cobwebs hang off a couple of the button's corners. Interactions: - When the cursor comes near, a bundle of sticky web strands shoots from the button and attaches to the cursor, sagging and swaying with physics. Pull far enough and the web snaps with a little whip. - On click: 1. Web lines shoot out in all directions and land with small splat webs. 2. A giant spider web spreads out behind the button across the screen. 3. Two swing lines fire upward and the button swings on them like a pendulum before settling. 4. Red and blue energy pulses race along the web strands, with small crackling arcs. 5. The button wraps itself in a premium woven-silk suit: crimson fabric texture, silver web stitching following the pill shape, padded depth and a soft moving sheen. The label stays readable. Use canvas for webs and rope physics. Keep it touch-friendly and performant on mobile, and respect reduced motion.
This animation needs JavaScript.
Build a single-file HTML/CSS/JS demo on a very dark, warm background with a dark-glass pill button "let's collaborate". - Hover: a glowing golden spell circle forms around the button — concentric rings, rune glyphs and fine geometric lines, slowly rotating, with lots of golden sparks drifting off it. The circle should subtly follow or tilt toward the cursor. - Click: the spell fully ignites — rings expand and lock in, sparks burst, and the button's glow intensifies. - After the click, show a small "Shift Time" button. Pressing it transforms the golden spell into green time rings: rings counter-rotate like clock mechanisms, a wave of green energy sweeps around, and the sparks turn green. Pressing it again (or auto-reset) returns to gold. All rings must face the viewer (front-facing, circular, not tilted ellipses). Make the glow bright and rich, but keep the button label readable. Smooth on mobile, and respect reduced motion.
This animation needs JavaScript.
Create a single-file HTML/CSS/JS demo on a dark forest-toned background with a dark pill button "let's collaborate" with a warm golden label. - Idle/hover: thin, organic roots creep out from the edges of the button and grow toward the cursor, following it as it moves, then slowly retract when it leaves. Small floating firefly-like particles drift around. - Click: a tree erupts from INSIDE the button — the trunk pushes up through the top of the pill, branches split and spread, and leaves unfurl with a soft green-gold glow. Small leaves or petals drift down. After a while, the tree settles or recedes and the button returns to normal. Growth should feel natural (tapering branches, slight randomness, easing as it grows), not like simple scaling. Use canvas or SVG path animation. Make it responsive, smooth on mobile, and respect reduced motion.
App & UI Experiences
This experience needs JavaScript.
Build a single-file HTML/CSS/JS interactive "Digital Wallet" screen for mobile (about 380px wide, centred on a soft light-grey neumorphic background). No images or external libraries; draw everything in code. TOP: a realistic leather card-holder wallet, drawn in SVG/CSS. - Leather should feel real: subtle grain texture, soft lighting, darker edges, and visible saddle stitching around the border and pocket. - The front pocket has a small thumb notch at the top. - A name or brand is blind-debossed (pressed into the leather, not printed) in the centre of the pocket. - Three credit cards peek out of the pocket in a staggered stack. CARDS (all drawn in code, each with its own premium style): - One deep-blue "platinum" style card, one black-and-gold card and one brushed-silver card. - Each shows a bank name with a small emblem, the card type, an EMV chip with contact lines, a contactless symbol, raised/embossed card number, VALID THRU date and cardholder name. - Use dummy numbers only. - Card network names are text only; do not copy any real network logo. INTERACTIONS: 1. Tap the wallet to open it. The front pocket folds forward in 3D, the cards rise out and fan into an arc. Tap the leather again to close it (reverse the motion). 2. When open, swipe left/right to rotate which card is in front. The cards must visibly pass each other; no card may pop or flicker when the stacking order changes. 3. Tap the front card to switch to a vertical stacked view (like a phone wallet app); tap it again to go back to the fan. 4. Use spring-based motion throughout: smooth, no wobble. BELOW THE WALLET: - A "Saved Cards" panel listing the three cards with small thumbnails, "ending with XXXX", and a Default/Secondary label. - A "Manage" link opens a frosted liquid-glass bottom sheet where any card can be set as Default. Exactly one card is always Default. - When the Default changes, the wallet plays a realistic shuffle that moves that card to the front, with a short card-shuffle sound generated in code. - A "Select Leather" row of 5 round leather swatches (blue, brown, black, silver, wine red), each with a stitched ring. Selecting one recolours the wallet with a smooth, flicker-free transition. QUALITY: 60fps, works with touch and mouse on iPhone Safari and desktop Chrome, fits one phone screen without scrolling, respects reduced motion, and is keyboard accessible.
This experience needs JavaScript.
Build a single-file HTML/CSS/JS music player widget for a portfolio. Dark theme only, premium feel, smooth motion. LAYOUT - One narrow vertical card (phone-style), same layout on desktop and mobile. - Top area: a large spinning vinyl disc with the song's artwork on its center label. - Below: "Now playing", song title, artist name. - Then a thin progress timeline with a draggable scrubber, elapsed time on the left and remaining time on the right. - Then a centered control row: shuffle, previous, a large rounded-square play/pause button, next, repeat (off / all / one). - A small "Up next" handle at the bottom of the card. - A liquid-glass style "Lyrics" pill button in the top-right corner, shown only when the current song has lyrics. - The card height must stay constant no matter which song or mode is active. DISC & SCRUBBING - The disc spins while playing and eases to a stop on pause. - While dragging the timeline, the disc spins fast in the direction of the drag. - Show a small pill tooltip with the current time above the scrubber while dragging. - The disc label artwork slowly crossfades between a few crops of the song poster as the track progresses. - Add a soft reflection under the disc. POSTER MODE - Tapping the disc switches to poster mode: the song poster covers the top of the card without stretching, and the disc shrinks to a small thumb-sized disc parked at the far right, still spinning. - The poster should blend smoothly into the dark card towards the controls (no hard edge, no visible band). - The song title and artist must stay clearly readable over the poster. - Tapping the mini disc / poster switches back. TRACK CHANGES - Next / previous: the timeline resets (it does NOT run to the end). The current disc rolls out of the card on one side and the next song's disc rolls in from the other side, with the title/artist animating too. - Swiping the disc or poster left/right also changes song, with the disc following the finger; a short swipe snaps back. - Previous restarts the song if more than a few seconds have played. QUEUE - Swipe up from the bottom of the card (or tap "Up next") to open a bottom sheet listing all songs. - Each row: small poster thumbnail on the left, title and artist, duration, and a drag handle. - Tap a row to play it. Drag the handle to reorder; next/previous follow the new order. - The playing song shows animated equalizer bars over its thumbnail (paused bars when paused). - Close by swiping the sheet down, tapping outside, or Esc. LYRICS - Songs can include time-synced lyrics (LRC format). In lyrics mode, the lines scroll in sync with playback, the active line highlighted, over a blurred/dimmed version of the poster. Readability first. AUDIO - Play songs through the YouTube IFrame API using a hidden player, from a playlist array in the code (title, artist, YouTube video ID, poster image, optional lyrics). - Start playing automatically when the page loads. - Show song durations in the queue. - If YouTube can't play, show a short message instead of breaking. STYLE - White as the accent color (play button, timeline, active states) on a dark card. - Use posters from the playlist; fall back to the YouTube thumbnail if no poster is given. - Keep everything in one HTML file, no frameworks. Respect prefers-reduced-motion. - Test every interaction, on desktop and mobile widths, before finishing.