Puddingby Tringify
PagesThe toy shelf hero
  1. Getting started with Pudding
  2. The toy shelf hero
  3. Product pages and product data
  4. Collections, filters and search
  5. Bag, checkout and popups
  6. Languages, phones and accessibility
  7. Theme settings
  8. Styles
  9. Page templates
  10. Sections: page sections
  11. Sections: content sections
  12. Sections: header, footer and overlays
  13. Blocks

The toy shelf hero

The Hero: toy shelf section shows products as cut-outs on a shelf. On desktop the toys drift with the cursor at different depths, the main plush leans toward the cursor, and hovering a toy squishes it and swings in a price tag. The section changes scene with a crossfade, and the toys of the next scene drop onto the shelf one after another.

Shoppers who prefer reduced motion see the finished scene without any movement.

Scenes

Each Shelf scene block is one slide. A scene has its own settings (wall colour, show the arch, text on the left or right, colour scheme) and holds up to 12 nested blocks:

  • Toy cut-out blocks, one per toy on the shelf,
  • kicker, heading, text, fact chips and buttons for the text beside the shelf.

Add, remove, reorder and duplicate scenes and toys like any other block.

Section settings: height (fill the screen, large, medium), Change scenes automatically and Seconds per scene, and switches for Depth movement with the cursor, Let marked toys lean towards the cursor and Squish toys on hover. Phone layout puts the shelf above or below the text, and the slider controls have their own colour scheme.

Toys

Each Toy cut-out block has:

Setting What it does
Cut-out image A PNG or WebP with a transparent background, cropped tight to the toy. 800–1200 px tall is enough.
Product for the price tag and link The product the price tag shows and the toy links to.
Position from the left Where the toy stands on the shelf, in % of the shelf width. Separate value for phones.
Height The toy's height relative to the scene. Separate value for phones.
Depth (parallax amount) Low values sit at the back and move little; high values sit at the front and move most.
Layer Which toy is in front when two overlap.
Lean towards the cursor Use on one plush per scene.
Show price tag on hover, Price tag text, Price tag position The tag on its string. Leave the text empty to show the product price.
Hide on phone For scenes that are too busy on a small screen.

Preparing cut-outs

  • Photograph the toys in the same light, from the same height, on a plain background.
  • Remove the background and crop to the toy. Keep a little of the contact shadow out; the theme adds its own.
  • Use the same scale for all toys so a rattle does not stand as tall as a bear.

On touch screens the first tap squishes a toy and shows its price tag; a second tap opens the product.