With a Klorr plan: Klorr’s sections at no costlower prices on every other sectiongenerate and sell your ownSee plans
← Marketplace
Product

Mattress Layers 3DShopify scroll animation product section

basket_benny

New

Without a plan€7
With a Klorr plan€5-29%

You pay €7 today. A plan saves you on every section.

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

How to add Mattress Layers 3D to your Shopify theme

  1. Get Mattress Layers 3D here and download its .liquid file from your Klorr account.
  2. In Shopify, go to Online Store › Themes, open the ⋯ menu on your theme and choose Duplicate, so you try it on a copy first.
  3. On the copy, open ⋯ › Edit code, then under Sections choose Add a new section and give it a name.
  4. Replace everything in the new file with the code you downloaded, and press Save.
  5. Open Customize, choose Add section on any page and pick it from the list. Change its words, pictures and colours in the panel, then publish the theme when you are happy.

New to theme code? Read the full guide: how to add a custom section to Shopify.

Questions about this scroll animation product section

Does Mattress Layers 3D work with my Shopify theme?

Yes, if your theme is an Online Store 2.0 theme, which includes Dawn, Horizon and almost every theme sold today. Mattress Layers 3D is a standard scroll animation product section: it is added under Sections in your theme code and then appears in the theme editor like the sections your theme came with.

Do I need an app to use this scroll animation product section?

No. It is a section file that lives in your own theme, so there is no app to install, nothing extra loading on your storefront and no monthly fee for it.

Can I change the text, images and colours?

Yes. Its words, pictures, colours and options are settings in the Shopify theme editor, so you change them in Customize without touching the code, and you can add it to as many pages as you like.

Will it slow down my store?

Its 3D library loads only when the section comes near the screen, its styles and scripts are scoped to the section, and it shows a plain fallback where 3D is not available, so the rest of the page loads as it did.

What do I get with Mattress Layers 3D?

One .liquid file with its full schema, made by basket_benny. You pay once and it is yours to keep: it stays in your theme and in your Klorr account, ready to download again.

Build your own sections with Klorr

Describe the section you want and get production-ready Liquid that respects your theme and stays editable in Shopify. No $400 theme required.