Turn [the cards I point to] into a snap carousel with arrows: a row that scrolls natively and snaps into place, with arrow buttons for desktop. Tech: no slider library. The track is a horizontal scroll container with scroll-snap-type: x mandatory, each card has scroll-snap-align: start, and the scrollbar is hidden. On mobile, let the next card peek in so people know they can swipe. Touch and trackpad scrolling just work. Arrows: two buttons next to the heading. One click scrolls by exactly one card width plus the gap, with smooth scrolling. The arrows are disabled at the start and the end (check the scroll position on scroll and on resize; settle the state on scrollend where supported, with a fallback for browsers without it). Optional: small dots under the track that show the current position. Accessibility: the cards are a list, the track can be focused and scrolled with the arrow keys, the buttons have labels and a visible disabled state. Respect prefers-reduced-motion by scrolling instantly. 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.
Floating product image
A product that hovers above its own shadow, turns a little and leans toward your mouse.
This is the real effect. Scroll or move your mouse inside the frame to try it.
Add a floating effect to [the product image I point to]: the product hovers above its own shadow, sways a little and leans toward the mouse. Markup: the product as a cut-out with a transparent background (PNG or WebP, or a 3D model if I have one), in a fixed frame, with a separate soft shadow element below it (an ellipse with a blurred radial gradient, not a box-shadow). Behaviour: the product bobs up and down slowly (about 6 seconds per cycle, ease-in-out, a movement of about 12px) with a very small rotation. The shadow moves in sync: when the product goes up, the shadow gets smaller and lighter, when it comes down, the shadow grows and darkens. On top of that, the product tilts a few degrees toward the mouse with a 3D perspective (rotateX and rotateY, eased with requestAnimationFrame), only while the pointer is over the section. Keep the image editable in my CMS and give it a fixed aspect ratio, so a replacement image never changes the layout. Respect prefers-reduced-motion: the product stands still on its shadow. 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 product that floats. It hovers above its own shadow, sways a little and leans toward your mouse, like it is waiting to be picked up.
When it works
Product sections and heroes with one strong product. It works best with one hero product that has a clear shape. It turns a static packshot into an object you want to reach for.
Get it right
- Use a cut-out with a transparent background, otherwise there is nothing to float.
- Let the shadow react: smaller and lighter when the product goes up.
- Keep the movement small. A few pixels and a few degrees is plenty.
Also called
- Hovering product
- Levitating product shot
- Floating packshot
- Product with breathing shadow
More effects.
All effects- LayoutPrompt
- LayoutPrompt
Turn [the gallery or cards I point to] into a bleed slider: it starts in line with the page content on the left, but runs off the right edge of the screen. Layout: the left edge of the first slide lines up with my normal content container. The track runs to the right edge of the viewport, so the next slide is visibly cut off there, which tells people there is more. Images keep a fixed aspect ratio. Tech: a native horizontal scroll container with scroll-snap (snap-align start) and a hidden scrollbar. Set padding-inline-start (and scroll-padding-inline-start) to the same value as the container's left edge, for example max(5vw, (100vw - container width) / 2), so the first slide lines up and every snap lands on that line. Add mouse dragging for desktop (pointer events, with a small inertia) and two arrow buttons that scroll by one slide and disable at the ends. Accessibility: the slides are a list, arrows are real buttons with labels, it scrolls with the keyboard and with touch natively. Respect prefers-reduced-motion by using instant scrolling for the arrows. 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
Add a live filter to [the posts, products or cards I point to]: filter buttons above the list, and the list updates instantly with a smooth animation, without reloading the page. First ask me what should be filtered and by what (categories, tags, a custom field) if that is not clear from the page. Then add one button per option, plus All. Behaviour: buttons toggle on and off (aria-pressed); decide with me whether several can be on at the same time. Items that match stay; the others fade and shrink out, and the remaining items slide smoothly to their new place (use the FLIP technique: measure positions before and after, then animate the difference with transforms). Show a short line with the number of results, and a Clear button when a filter is active. Every item carries its filter keys in a data attribute, rendered from the real taxonomy or field of my CMS, so new items are filterable automatically. Accessibility: buttons are real buttons, the result count is in an aria-live region, hidden items are really hidden from screen readers after the animation. Respect prefers-reduced-motion by switching without the animation. 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.