Swap the photo

A dot shows its color's photo on the card, on hover or on tap, with a fade, wipe or slide.

For Purplish 1.3.3. Works on block themes.

Docs menu

Where to find it

Open the template with your product cards, like Appearance, Editor, Templates, Product Catalog. Add a Color Dots block inside the Product Template of a Product Collection block, from the Purplish group of the block inserter. Select it, then pick Swap the photo and a Swap motion in the Colors panel of the block sidebar.

The Colors panel on a Color Dots block, with Swap the photo set to On hover and Swap motion set to Fade.

Swap motion shows once Swap the photo is on.

The choices

It starts on Off.

ChoiceWhat it does
Off DefaultThe dots only show the colors.
On hoverA dot shows its color on the photo while the mouse is over it. A click or tap keeps it.
On tapOnly a click, tap or Enter on a dot shows its color on the photo.

Swap motion:

ChoiceWhat it does
Fade DefaultThe new photo fades in.
WipeThe old photo wipes away upward.
SlideThe old photo slides out to the left and the new one comes in from the right.

Good to know

  • Each color uses its first variation photo that isn't the main photo. A color without one shows the main photo, and a product with none gets plain dots.
  • Click the chosen dot again to go back to the main photo.
  • While a color shows, the photo's alt text adds the color name, like Long Coat, Grey.
  • It needs the Product Image block on the card, and it works on cards that Load more or a filter brings in.
  • Visitors who ask their device for reduced motion see the photo swap at once.

Still stuck? Ask in the support forum.