Skip to content
All effects

Floating product image

A product that hovers above its own shadow, turns a little and leans toward your mouse.

Layout

This is the real effect. Scroll or move your mouse inside the frame to try it.

The prompt

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