Add count-up numbers to [the stats I point to]: the figures count up from zero when they scroll into view (also called animated counters). Behaviour: when a number comes into view (IntersectionObserver, about 40% visible), it counts from 0 to its value in about 1.6 seconds with an ease-out (fast at first, slowing down at the end), staggered by about 150ms per number. It runs once. The number keeps its formatting while counting: prefix and suffix (like €, + or %), thousands separators and the same number of decimals as the final value. Use tabular-nums so the digits do not jump around while counting. The final number stays ordinary, editable text in the HTML. The script reads it, counts up to it and keeps the original markup, so it never shows a wrong value without JavaScript or to search engines. Screen readers get the final value (aria-label). With prefers-reduced-motion, show the final numbers immediately. Style: build it in the existing design system of this website. Reuse its colours, fonts, spacing, corner radius and existing classes or components, and don't add new colours or fonts. Use real content from this website for any text or images in the effect (its headings, services and copy), never placeholder text. If the project has no design system yet, ask me for the brand colours and fonts before you start.
Slide-over quote panel
Every quote button opens the form in a panel that slides in from the side, without leaving the page.
This is the real effect. Scroll or move your mouse inside the frame to try it.
Add a slide-over quote panel to this website: the quote or contact form slides in from the right side, without leaving the page. Markup: one panel for the whole site, using a native <dialog> element, placed once in the footer template, holding my existing form, a heading and a close button. Any link to #quote (or with a data-quote attribute) anywhere on the site opens it. Behaviour: the panel slides in from the right (transform translateX, about 400ms with a soft ease) while the page behind dims with a backdrop. It closes with the close button, the Escape key or a click on the backdrop, and slides out the same way. Opening it moves focus to the first field, focus stays inside the panel, and closing returns focus to the button that opened it. The page behind does not scroll while it is open. After a successful submit, the form is replaced by a thank you message in the same panel. On mobile the panel takes the full width. If the page itself is a contact page, scroll to the inline form instead of opening the panel. Respect prefers-reduced-motion by fading instead of sliding. Style: build it in the existing design system of this website. Reuse its colours, fonts, spacing, corner radius and existing classes or components, and don't add new colours or fonts. Use real content from this website for any text or images in the effect (its headings, services and copy), never placeholder text. If the project has no design system yet, ask me for the brand colours and fonts before you start.
What it is
A form that slides in from the side, on top of the page you are on. Ask for a quote, close it, and you are right where you were.
When it works
For sites where the main action is asking for a quote or a call. Every quote button on the site can open the same panel. Nobody has to leave the product they were looking at to ask a question about it.
Get it right
- Use one panel for the whole site, opened by any quote link.
- Escape, the backdrop and the close button all close it, and focus goes back to the button.
- Show the thank you message in the same panel, not on a new page.
Also called
- Off-canvas form
- Side drawer form
- Slide-in panel
- Quote drawer
More effects.
All effects- InteractivePrompt
- InteractivePrompt
Build a 3D product configurator with three.js for [the product I describe]: visitors change the product with sliders and swatches, see it update live in 3D, and get a price and a pre-filled quote request. Controls: a slider for every dimension (each showing its value with the unit), colour or material swatches, a live price and a Request a quote button. Use the options and price rules I give you. 3D: build the product from code where possible (for example a LatheGeometry from a profile of points for round products, extruded shapes for flat ones). When a slider moves, tween the values over about 300ms and rebuild the geometry, so it grows and shrinks smoothly instead of jumping. Soft studio light, a soft contact shadow under the product, the product turns slowly and can be dragged to rotate. Logic: the price is calculated with one clear formula in one place. Request a quote opens my existing quote form with the configuration filled into a hidden field and shown as a readable summary. Accessibility: real range inputs with labels, the price in an aria-live region. With prefers-reduced-motion: no auto rotation and no tweening. Cap the device pixel ratio at 2. Style: build it in the existing design system of this website. Reuse its colours, fonts, spacing, corner radius and existing classes or components, and don't add new colours or fonts. Use real content from this website for any text or images in the effect (its headings, services and copy), never placeholder text. If the project has no design system yet, ask me for the brand colours and fonts before you start.
- InteractivePrompt
Build a 3D scene configurator with three.js for [the situation I describe]: a small 3D world where visitors place things by clicking, change the conditions with a slider, and keep the result in a shareable link. Scene (example: solar panels on a house): the base scene built from code (simple boxes and extruded shapes), a ground plane, and a set of slots where things can be placed. Empty slots are faint outlines, placed items are solid. Use soft light from the sky and one directional light, with soft shadows. Interaction: clicking a slot (raycaster) adds or removes an item with a small pop animation. A slider changes a condition live, for example the time of day moving the sun along an arc so shadows and light change. A small panel shows the count and a live estimate from one formula in one place. The camera can be orbited a little by dragging, within limits. State: the selection and the slider value are written to the URL (query string or hash) with history.replaceState, and read on load, so a configuration can be shared or sent with a quote request. Keyboard: slots can also be toggled with buttons in the panel. Cap the device pixel ratio at 2 and pause off screen. With prefers-reduced-motion, no pop animations. Style: build it in the existing design system of this website. Reuse its colours, fonts, spacing, corner radius and existing classes or components, and don't add new colours or fonts. Use real content from this website for any text or images in the effect (its headings, services and copy), never placeholder text. If the project has no design system yet, ask me for the brand colours and fonts before you start.