Lab

Interaction and animation demos and components, with a technical explanation of how we build them. Not everything ends up in a website, but this is where the features we propose to clients are born.

Looking for whole homepages, not single effects? Visit the Showcases →

Domenico also has a page of his own for experiments with no constraints: his page →

Demos

Complete pages and apps to open and try: 3D scrolling, widgets for clients, data from external services. The demo pages are in Italian.

Demo3D animations
Scroll-driven 3D jellyfish

Scroll-driven 3D jellyfish

  • Three.js
  • GLSL
  • CSS
  • +1
View the demo →

A 3D jellyfish that swims from one section to the next following the scroll, over an underwater photo that comes closer as you go down. No 3D file: it is built entirely in code.

View the demo →
Scroll-driven 3D jellyfish

A 3D jellyfish that swims from one section to the next following the scroll, over an underwater photo that comes closer as you go down. No 3D file: it is built entirely in code.

How it works

The bell, tentacles and pulse are hand-written shaders on geometry generated by code: there is no model to download, and the whole page weighs about 1 MB (a typical 3D model weighs tens). Scroll decides where the jellyfish is: each section maps to a position, a tilt and a scale, and the movement between them is damped, so it never jerks and turns smoothly halfway. The zoom on the background photo is pure CSS (a scroll-linked animation), with no JavaScript. The scene pauses when it leaves the viewport; with “reduce motion” on, the jellyfish barely pulses and moves without swooping. A high-impact effect for a hero or a storytelling page, to be used once per page.

  • Three.js
  • GLSL
  • CSS
  • JavaScript
View the demo →
Demo3D animations
Infinity in 3D

Infinity in 3D

  • Three.js
  • SVG
  • CSS
  • +1
View the demo →

Our mark built piece by piece: two extruded 3D rings that open, interlock and close into a loop as you scroll. Scroll is the crank.

View the demo →
Infinity in 3D

Our mark built piece by piece: two extruded 3D rings that open, interlock and close into a loop as you scroll. Scroll is the crank.

How it works

The stage stays pinned (sticky) for four screens and scroll acts as a crank: at each step the rings rotate, pull apart and close again. The two shapes are vector outlines from our logo, extruded in 3D with physical materials (reflections and bevelled edges) and a procedural light environment. A useful detail if you want to do the same with a logo: the original SVG paths self-intersect and the library cannot extrude them, so the outlines were retraced cleanly. Again, no 3D file to download. Adaptable to a client’s mark, for an “about us” page or a product presentation.

  • Three.js
  • SVG
  • CSS
  • JavaScript
View the demo →
DemoWidgets and tools
Appointment booking

Appointment booking

  • React
  • Vite
  • HTML
  • +1
View the demo →

A booking calendar with services, available times and instant confirmation: the kind of feature a medical practice, a salon or any appointment-based business can build right into its site. Built in React, with demo data.

View the demo →
Appointment booking

A booking calendar with services, available times and instant confirmation: the kind of feature a medical practice, a salon or any appointment-based business can build right into its site. Built in React, with demo data.

How it works

A 4-step wizard (service, date, time, details) driven by the component’s React state: each step advances only after a valid choice, with a progress indicator that fills with red as you go. The calendar computes the month grid at runtime (weeks of 7 cells, Monday as the first day) and automatically blocks Sundays and past days; the already “booked” times are computed deterministically from the chosen date, so every day shows plausible, different availability without a real backend. The final confirmation draws a checkmark in SVG (animated stroke-dashoffset) and generates a small burst of confetti in JS on the fly, randomly placed and coloured: no library, just absolute elements animated via CSS. Same principle as the mock data in the reviews widget: ready to connect to a real booking backend (or to a service like cal.com, already used for Axpro Paintball) by replacing only the function that generates availability.

  • React
  • Vite
  • HTML
  • CSS
View the demo →
DemoWidgets and tools
Google Reviews Widget

Google Reviews Widget

  • React
  • Vite
  • HTML
  • +1
View the demo →

Google reviews shown right on your site, updated automatically: the same trust as Google Maps without sending the visitor away. Built in React, with demo data for now.

View the demo →
Google Reviews Widget

Google reviews shown right on your site, updated automatically: the same trust as Google Maps without sending the visitor away. Built in React, with demo data for now.

How it works

The data has the same shape as the Google Places API ‘Place Details’ response (rating, review count, text/author/score for each review), mocked for now (so as not to expose a per-request-billed key on a public Lab page), but the logic is already ready to receive real data: just replace the function that fetches it with a real call, behind a domain-restricted key or a dedicated proxy (for example a Cloudflare Worker), depending on how private the key has to stay. Loading goes from a ‘skeleton’ state (handled with React’s useState/useEffect hooks) to the real data, to simulate the actual wait of a network call. The fractional average rating (e.g. 4.8 out of 5) is rendered with two overlaid rows of stars, the red one clipped by percentage via CSS: no images, no icon library. A pattern you can sell to any client with an active Google Business listing, whatever the sector.

  • React
  • Vite
  • HTML
  • CSS
View the demo →
DemoData and APIs
SkyTracker

SkyTracker

  • HTML
  • CSS
  • JavaScript
  • +1
View the demo →

A weather app with city search, current conditions and a 3-day forecast, built on two public keyless APIs (MET Norway for the forecast, Nominatim to find the city) called straight from the browser.

View the demo →
SkyTracker

A weather app with city search, current conditions and a 3-day forecast, built on two public keyless APIs (MET Norway for the forecast, Nominatim to find the city) called straight from the browser.

How it works

The app asks MET Norway for the forecast (an hourly series, from which it derives the days) and Nominatim for the city’s coordinates, only when you press enter and at most one request per second, as both services ask. No key and no intermediate server: responses are cached for the session so calls are not repeated, MET’s weather codes are translated into icons and Italian texts, and the attributions required by the licences (CC BY 4.0, OpenStreetMap) appear on the page. When an API requires a secret key you need a proxy instead, such as a Cloudflare Worker.

  • HTML
  • CSS
  • JavaScript
  • REST API
View the demo →
Demo3D animations
Interactive 3D butterfly

Interactive 3D butterfly

  • Three.js
  • GLSL
  • CSS
  • +1
View the demo →

A 3D butterfly that follows you as you move the pointer and flies off on its own when you stop. Touch the butterfly or pick the wing colours: red, ice, amber, night.

View the demo →
Interactive 3D butterfly

A 3D butterfly that follows you as you move the pointer and flies off on its own when you stop. Touch the butterfly or pick the wing colours: red, ice, amber, night.

How it works

A single 3D object, entirely generated by code: the wings carry a pattern (veins, spots, dotted edge) computed in a shader, while the body and antennae are extruded curves. As long as the pointer moves, the butterfly chases it with damped motion; if it stops for a couple of seconds, it takes off on its own along a soft trajectory. Clicking the butterfly or the buttons changes the wing palette with a transition. With “reduce motion” on it no longer chases the pointer and flies gently. Suited to an event, product or brand page that wants something alive but not intrusive.

  • Three.js
  • GLSL
  • CSS
  • JavaScript
View the demo →
DemoWidgets and tools
Memo calendar

Memo calendar

  • Astro
  • TypeScript
  • WebGL
  • +1
View the demo →

A calendar of deadlines, birthdays and appointments with a generative background, tiles that tilt and flip, and an entry loader. Events stay in your browser.

View the demo →
Memo calendar

A calendar of deadlines, birthdays and appointments with a generative background, tiles that tilt and flip, and an entry loader. Events stay in your browser.

How it works

The background is a hand-written WebGL fragment shader: the light shifts towards the colour of the chosen day’s category and the accent has constant luminance, so the contrast of the text over the canvas stays measurable (light text above 5.8:1 even at the brightest points). Tiles, flips and loader are WAAPI and IntersectionObserver, with no animation library: the whole script weighs a few KB. Events live in localStorage with yearly and monthly recurrences computed on the fly; for real use the same calendar syncs with a small endpoint, removed here. Adaptable to an events calendar, class timetables or a deadline planner for professional firms.

  • Astro
  • TypeScript
  • WebGL
  • CSS
View the demo →
DemoScroll and galleries
Scroll storytelling

Scroll storytelling

  • CSS
  • HTML
View the demo →

The journey of a drop from the snow to the sea, told in five chapters: scroll and the photos dissolve, a river draws itself, the altitude drops from 3000 to −30 metres. All in pure CSS, no libraries.

View the demo →
Scroll storytelling

The journey of a drop from the snow to the sea, told in five chapters: scroll and the photos dissolve, a river draws itself, the altitude drops from 3000 to −30 metres. All in pure CSS, no libraries.

How it works

A full-screen fixed stage (sticky) holds the stacked photos while the chapters scroll over it. Photos, river, drop and altitude figure all move on a single scroll-linked timeline (animation-timeline), so they stay in sync without a line of JavaScript: the photos dissolve halfway between two chapters, the river draws itself with stroke-dashoffset, the drop follows it with offset-path, and the altitude is an animated CSS counter that passes through the exact values of each chapter. Where the browser does not support scroll-linked animations, and with “reduce motion” on, the page becomes a normal read with photos and text alternating: the story stays whole. Five optimised photos for about 1.2 MB in total, with lighter versions for phones. Suited to a brand, territory or product story, to be used as a page of its own rather than as a hero.

  • CSS
  • HTML
View the demo →
DemoScroll and galleries
Draggable gallery

Draggable gallery

  • GSAP
  • Draggable
  • Flip
  • +2
View the demo →

Sixteen places in a grid bigger than the screen: drag it with mouse, finger or arrows, and the photo you touch flies into a panel with its story. With sound (off at first) the gallery has a voice too.

View the demo →
Draggable gallery

Sixteen places in a grid bigger than the screen: drag it with mouse, finger or arrows, and the photo you touch flies into a panel with its story. With sound (off at first) the gallery has a voice too.

How it works

Draggable moves the whole grid with inertia and keeps it within the edges; the wheel and trackpad pan it, and keyboard users move through it with the arrow keys without ever losing sight of the tile in front. Every tile is a real button; the chosen photo is copied and flown with Flip to the panel, where the crop changes shape with no jumps, and the detail is a native dialog (focus, Esc and keyboard handled by the browser, arrows to move through the photos). The tiles weigh ~45 KB and the large photo loads only on click. Sound is off at the start and is switched on with a button that first invites you with three breathing bars: micro-sounds for grab, release, opening (a shutter) and closing, plus a one-minute ambient drone loop with no audible seam. With “reduce motion” there is no inertia or flights, only fades. The Tokyo photo is AI-generated and says so on its card.

  • GSAP
  • Draggable
  • Flip
  • JavaScript
  • Web Audio
View the demo →
DemoWidgets and tools
Reorderable gallery

Reorderable gallery

  • GSAP
  • Flip
  • CSS Grid
  • +1
View the demo →

Sixteen animal photos in a mosaic where the shape follows the position: the first four are the showcase and are bigger. Grab a photo and move it where you like, the others step aside; by keyboard lift it with Space and move it with the arrows.

View the demo →
Reorderable gallery

Sixteen animal photos in a mosaic where the shape follows the position: the first four are the showcase and are bigger. Grab a photo and move it where you like, the others step aside; by keyboard lift it with Space and move it with the arrows.

How it works

The mosaic is a CSS grid where each tile’s shape depends on its position: the first is 2×2, the second and third 1×1, the fourth 2×1, the rest 1×1. When a photo changes place, GSAP Flip animates each tile from its old space to the new one, size included: moving a photo to first position really makes it grow. With a mouse you can grab from anywhere: a copy follows the pointer and a dashed placeholder shows where it will land. On touch you drag only by the handle, so the page keeps scrolling under your finger. From the keyboard Space lifts, the arrows move, Space drops, Esc cancels, and an off-screen voice announces each position. There are Undo (also Ctrl+Z), Start over and Save order; the two “New” photos sit at the end, as if just uploaded, and the badge disappears on save. In this demo the order is saved in the browser: on a real site a reorder made on the page does not save itself, you need an admin panel that writes it to the site, and it has to be budgeted for. On click the photo opens full screen, with its own blurred image as ambient light, the photographer credited with a link to Unsplash, and arrows or swipe moving through the grid’s current order. Tiles of about 100 KB, the large photo loads only on click. With “reduce motion” there are no flights or zoom, only fades.

  • GSAP
  • Flip
  • CSS Grid
  • JavaScript
View the demo →
DemoData and APIs
Social report

Social report

  • SVG
  • JavaScript
  • CSS Grid
  • +1
View the demo →

The monthly report of an imaginary business (Osteria Lunapiena): reach, new followers, engagement, the best-performing content, the best formats and the hours when followers are online. Change the period and everything recalculates, including the written reading of the numbers.

View the demo →
Social report

The monthly report of an imaginary business (Osteria Lunapiena): reach, new followers, engagement, the best-performing content, the best formats and the hours when followers are online. Change the period and everything recalculates, including the written reading of the numbers.

How it works

The charts are SVG and HTML generated by code, with no libraries: the whole page, photos excluded, weighs about 65 KB. The data is fake but has the shape of what Instagram’s APIs return (one series per day per account and a list of posts with reach, likes, comments, saves and shares), so the day a real account is connected you only need to replace the data file. Note: connecting a real account requires an app approved by Meta and a token, and the calls cannot be made from the browser; you need a small service that reads them and passes them to the page. When you choose 7, 30 or 90 days, every number, chart and sentence is recalculated against the preceding period of equal length. The “In brief” part is written by the code from the numbers (trend, best post, best-performing format, best time) and changes with the period: it is what sets a report apart from a dashboard. A single colour rule: one protagonist in red, everything else grey, and red never colours text because on black it does not hold up contrast. Every chart has its own description on hover and from the keyboard (arrows, Home, End) and a Table view for people who cannot see colours or use a screen reader. The bars reorder with a motion when the metric changes (reach or engagement). The post photos are from Unsplash, with the photographers credited on the page. On a phone the best posts become a row to swipe through. With “reduce motion” there is no progressive line drawing and no animated counters.

  • SVG
  • JavaScript
  • CSS Grid
  • Container query
View the demo →
DemoWidgets and tools
Quote builder

Quote builder

  • React
  • Vite
  • CSS
  • +1
View the demo →

The quote of an imaginary painting company (Ti Pittu) that builds up as you answer: square metres, wall condition, finish, extras. The price shows as a range on a receipt that updates at every choice, with estimated working days and a summary to copy.

View the demo →
Quote builder

The quote of an imaginary painting company (Ti Pittu) that builds up as you answer: square metres, wall condition, finish, extras. The price shows as a range on a receipt that updates at every choice, with estimated working days and a summary to copy.

How it works

It is a React app in its own repo, built and copied into the Lab. All the numbers (prices per square metre, surcharges, range, days) live in a single file: for a real client you change them there, without touching the interface. The calculation is a pure function, covered by automated tests, which turns the choices into receipt lines, the total and the range. Showing a range rather than a flat price is a choice of honesty: walls are better judged in person, and the request states that after the site visit the fixed price will not exceed the maximum. The choices live in the page address (the part after the #): the link can be copied, sent and reopens the identical quote, with no server. It is a real form: choices with native radios and checkboxes, a heading that receives focus at every step, a total announced only once to screen readers (not at every number that scrolls) and everything usable from the keyboard. On a phone the receipt becomes a bar at the bottom that opens on touch. With “reduce motion” the figures do not roll. Note: in this demo “Request the quote” sends nothing, the contact form is an external service to be connected case by case; and a real quote tool has to be calibrated on the business’s real prices, otherwise it promises figures that are then not kept. The widget has an identity of its own (paper, ink, the logo’s blue) because on a client’s site it has to look like the client’s, not the studio’s. Company, prices and data are made up and the logo was generated with AI.

  • React
  • Vite
  • CSS
  • JavaScript
View the demo →
DemoData and APIs
Currency converter

Currency converter

  • JavaScript
  • API REST
  • SVG
  • +1
View the demo →

The site of an imaginary travel agency (Tre Timbri) where the visitor picks their currency and trip prices are recalculated, with a converter and the exchange-rate trend over the last 30 or 90 days. The rates are real, updated daily.

View the demo →
Currency converter

The site of an imaginary travel agency (Tre Timbri) where the visitor picks their currency and trip prices are recalculated, with a converter and the exchange-rate trend over the last 30 or 90 days. The rates are real, updated daily.

How it works

The rates are real (central banks, the ECB for almost all currencies, through the free Frankfurter service) and the page asks for them directly from the browser: no key, so no intermediate server is needed, and the visitor’s address goes only to that public service. If the service does not respond, the page falls back on sample rates and says so with a dashed stamp, instead of showing numbers that look real. The trend is a hand-written SVG chart, with no libraries, explorable with the pointer or the keyboard arrows; below it, a sentence written by the code summarises the period. The rates are indicative and published for information: they are fine for showing how much a trip costs, not for charging a payment, which in this scenario would stay in euros. Agency and prices are made up; the photos are from Unsplash, with the photographers credited on the page. The same pattern suits a shop showing prices in the visitor’s currency, a hotel with foreign guests or any external data.

  • JavaScript
  • API REST
  • SVG
  • CSS
View the demo →
DemoWidgets and tools
FAQ with search

FAQ with search

  • JavaScript
  • CSS
  • Custom Highlight API
  • +1
View the demo →

The frequently asked questions of an imaginary bike workshop (Pedivella) with a search that understands: it finds the answer even with a synonym or a typo, highlights the matched text, filters by topic and has a direct link to every answer.

View the demo →
FAQ with search

The frequently asked questions of an imaginary bike workshop (Pedivella) with a search that understands: it finds the answer even with a synonym or a typo, highlights the matched text, filters by topic and has a direct link to every answer.

How it works

The questions live in a single data file: for a real client you rewrite them there and the page rebuilds itself. Each question also has a list of related words the customer might use (“rubber” for inner tube and puncture): it is the difference between a search that finds and one that says “no results”. The search ignores accents and capitals, forgives a typo, tolerates a half-typed word and gives more weight to the title than to the body of the answer; if no answer contains all the words typed, it shows those containing at least one and says so. The matched text is highlighted with the CSS Custom Highlight API, which adds no elements to the HTML and therefore does not break sentences for screen reader users; where it is not supported the page works the same, without highlighting. Every answer has its own address (#r=…) and the search and the theme also end up in the address, so you can send a link that already opens the right answer. The questions are also described as FAQPage for Google: here the script does it, on a real site the code would be written into the HTML at build time. Full keyboard support (slash to search, arrows between questions) and reduced motion respected. Bike workshop, prices and rules are made up; the logo is AI-generated and the background photo is from Unsplash, deliberately blurred because the brands can be read in the original.

  • JavaScript
  • CSS
  • Custom Highlight API
  • Dati strutturati
View the demo →

Components

Smaller details than the Demos above (buttons, cards, menus, notifications, backgrounds, forms) made to be added to an existing site. Each card gathers several elements on the same theme: the richer ones have tabs to move between them. Try them live right here.

Navigation

Navigation

3 elements: the fixed bar that changes style past the hero, the hamburger button that transforms (fan, path, neon) and menu items that leave a reflection as you pass.

Layout

Page sections

3 elements to build a page: a bento grid with light that follows the cursor, monthly/yearly pricing with a single switch, a stepper for a quote and a project timeline.

Interaction

Buttons and borders

2 elements: five buttons with a character each (orb, neon, steampunk, vector, wild west) and three borders that move around a box.

Effects

Animated backgrounds

Seven living backgrounds for a hero: shooting stars, fireflies, autumn leaves, rainbow rain, parallax, waves. They animate only while in view.

Gallery and media

Galleries

3 elements: images arranged in a 3D circle, accordion panels that widen on touch, a row of logos that scrolls forever.

Interaction

Reactions

4 elements to answer a touch: a “like” in seven versions, star rating, a bell with a counter, copy to clipboard with in-place confirmation.

Gallery and media

Sliders

Six full-width sliders: fruit soda, movie posters, fashion, animals, coffee and landscapes. Arrows, keyboard and finger, or they rotate on their own while in view.

Cards

Cards

2 elements: five cards for products and content (a cut-out that leaves the frame, 3D tilt, a ticket from a slot) and cards that flip in 3D.

Effects

Text effects

Nine effects for headlines: four glitches, text that reassembles on scroll, a circular version, soft shadow, stacked letters and animated bars.

Forms

Fields and search

3 elements: seven text fields with character, five search bars (up to the Ctrl/⌘ K command palette) and a time picked by dragging along an arc.

Navigation

Choice controls

2 elements: five light/dark switches (here the theme really changes) and three ways to choose a view with tabs and segmented controls.

Feedback

Windows and alerts

3 elements: toasts with four states and a progress bar, a cookie notice in three forms, a popup with a video player in an overlay.

Effects

Cursors

The pointer as part of the design: a torch on a map, a contrast circle, a play cursor on video, a cursor that changes with the element.

Feedback

Loaders and progress

Seven graceful ways to make people wait: a preloader with the logo, bubbles, a coffee cup, dots, a stack of cards, a ring and a progress bar.

Feedback

404 pages

Seven “not found” pages that make you almost miss the error: text, infinity, particles, windows that run away, tic-tac-toe, Newton’s cradle and bubbles. Each in a different language.

Gallery and media

Before and after

4 elements: comparing two images with a draggable slider, a wipe, a swap button and a lens that reveals the “after”.

Layout

Trust blocks

4 elements: counters that climb as they appear, percentage bars, strips of certifications drifting past and testimonials with four ways to sign a quote.

Mobile

Quick contact

3 elements: the floating button with WhatsApp, phone and “open now” hours, the contact bar that hides while reading and a guided-question assistant, no AI.

Interaction

Filters and grids

3 elements: category filters and search that narrow the list with an animated reorder, three views (grid, list, poster) that swap in a cascade and a detail view where the photo opens from its thumbnail.

Interaction

Quick commands

2 elements: the ⌘K menu with typo-tolerant search, groups and two-key shortcuts, and two-level sub-commands with crumbs and Backspace to go back.

Forms

Multi-step forms

3 elements: the four-step form with a receipt that fills in and a saved draft, one question at a time on a full stage, and the conditional form where answers open the fields.

Cards

Tables and comparisons

3 elements: the price list with a fixed header, sorting and expandable rows (cards on a phone), the three-plan comparison with a “differences only” switch, and the two-way matrix that lights up row and column.

Navigation

Maps and hotspots

3 elements: the neighbourhood map with pan, zoom and a filterable “open now” list, hotspots on a photo with an anchored tooltip, and the round-the-world trip where the route draws itself and the ∞ marker follows the stops.

Mobile

Gestures and physics

4 elements: a deck of cards to fling away with your finger, a sheet that stops where you let go, a ball with the logo that bounces and pull-to-refresh, all with springs and momentum.

Mobile

Stories and feed

4 elements: the story viewer with progress bars, tap zones, hold-to-pause and drag-down to close, the full-screen vertical feed with snapping and double-tap hearts, the long-press preview that lifts a card and opens full screen, and the layered card that follows your phone’s tilt.

Mobile

Navigation and screen

2 elements: the thumb zone, with a reach map for the right, left or both hands, the navigation bar at the bottom or the top and the 24 and 44 px touch thresholds, and the real screen, where 100vh, svh, dvh and lvh change with the browser bar, the notch and the keyboard, plus the right attributes for every kind of field.

Cards

Glass and materials

5 slabs to drag over the same backdrop: liquid glass with refraction (Chrome only), frosted glass, brushed metal that follows the light, paper with fibre and a folded corner, grain. Every effect declares its fallback and has sliders for intensity and thickness.

Navigation

Page transitions

A 3-page record shop with the browser's native page transitions, CSS only: fade, slide following the direction, the cover flying from one page to the next, or none. Style picker, with a fallback where the browser can't do them.

Layout

CSS only 2026

A logbook on one long page, no script: a table of contents that lights up by itself, a carousel with dots and arrows, tooltips anchored to their button, a bar that hides as you scroll and corners that are more than rounded. Each feature shows browser support and its fallback.

Cards

Charts

4 elements with a trattoria’s numbers: lines and areas with a strip to pick the months, stacked bars and a donut that light up together, the day-by-hour heat map, and mini charts with a gauge and targets. Keyboard tooltips and an equivalent table for screen readers.

Like one of these effects?

See the Web packages →