Mattress Layers 3DShopify scroll animation product section
New
Paid once, yours to keep.
A 3D mattress that comes apart as the page scrolls: each layer lifts off in its own material, labelled, then it closes for the buy box.
What this Shopify section does
Mattress Layers 3D shows what is inside a product instead of describing it. A three.js mattress sits at a three-quarter angle, one rounded slab per layer, each wrapped in a photo of its real material. As the shopper scrolls, the layers lift off one another in turn on soft springs, casting real shadows on the layer below, and a label for each slides out on a leader line with its name, thickness and what it does. Hovering a layer lifts it, clicking its label moves the camera in and dims the rest. At the end the layers drop back into one mattress with a small bounce, and the product name, size picker, price and add to cart settle in. Every layer is a block (material photo, name, thickness in cm, one line of text), so it suits mattresses, pillows, toppers, shoes, jackets or anything built in layers. On phones the stack stays at the top of the screen while the layer list scrolls under it and lights up. three.js loads only when the section is near, reduced motion shows the layers apart with no travel, and without WebGL the room photo and the layer list show instead.
- Scroll-driven exploded view, one layer at a time
- Each layer wrapped in its own material photo, with real shadows
- Labels on leader lines: name, thickness, what it does
- Hover lifts a layer, clicking a label moves the camera in
- Closes back into one piece and brings in size, price and add to cart
- Phone layout: sticky stack with a list that lights up as it scrolls
- Reduced motion and no-WebGL versions that keep all the content
- Clean Liquid with a complete
{% schema %} - Editable in the Shopify theme editor, like any other section
- Works on any Online Store 2.0 theme
- Pasted into your own theme, with no app on your storefront