Project portfolio Browse selected work

Shopify Plus Upgrade Monthly Fee Reduction + Up to $4800 Development Fee Credit - Exclusive WesWoo Offer

Search
Galleries & detail viewing

Product front and back

Pause on front and back to inspect print placement. Compare the motion only after both assets load, and keep the current side identifiable.

Offer a tap control for front and back. Switch to the rear view, then change color and verify the rear image also belongs to the new variant.

Both switches updated the status. For similar-looking images, the front and back labels provide a second check on the selected control.

Reproduce the test and inspect the readings

Switch front to back and back to front. Read the current-view status.

908 and 316 px, both preferences
Front view then Back view then Front view

WESWOO loaded this example’s published HTML, CSS and JavaScript in standalone Chrome at 700 px viewport height. Both motion preferences were tested at each width.

2026-11-24 · Chrome 157.0.8103.79

Download test conditions and raw readings (JSON)

View the phone and desktop observations

WESWOO · 24 November 2026. We enabled reduced motion at phone width and used the default motion setting at desktop width. These observations come from the live example.

Window / preview widthActionObserved result
390 / 316 pxBackPreviously “Front view”. The interface showed “Back view”.
1440 / 908 pxBackPreviously “Front view”. The interface showed “Back view”.

Preparing preview

How the effect works

Let shoppers decide when to look at the back

A garment may have a back print or a device may have ports. Give each side a labeled control so shoppers can inspect it on demand.

Example source code

View 3 source filesHTML · CSS · MJS
product-front-back.html
<section class="fx angle-demo" lang="en" aria-label="Product front and back preview">
  <div class="angle-copy">
    <h2>Sky blue tee</h2>
    <p>Check the graphic and the print placement from both sides.</p>
    <div class="angle-actions" role="group" aria-label="Product view">
      <button type="button" data-side="front" aria-pressed="true">Front</button>
      <button type="button" data-side="back" aria-pressed="false">Back</button>
    </div>
  </div>
  <figure class="angle-figure">
    <div class="angle-scene">
      <div class="angle-flip">
        <img class="angle-front" src="__WW_VISUAL_1__" alt="Front of a sky blue T-shirt with a drop graphic">
        <img class="angle-back" src="__WW_VISUAL_2__" alt="Back of the same T-shirt with a small Codrops wordmark" aria-hidden="true">
      </div>
    </div>
    <figcaption role="status">Front view</figcaption>
  </figure>
</section>

Integration and checks

Theme integration

3 steps
  1. Duplicate the theme

    Integrate and preview the example in a duplicate theme.

  2. Connect the section settings

    Replace demo copy and artwork with section settings and scope the styles to that section.

  3. Connect the editor lifecycle

    Use the lifecycle script for editor reloads, pausing offscreen and cleanup on unload.

Placement

  • Apparel prints, equipment back panels and accessory ports.

Interaction

  • Both images share a fixed frame. A button selects the side, and the caption names the active view.

Touch and accessibility

  • Touch and keyboard use the same controls. Reduced motion swaps the view immediately.

Setup notes for this effect

Use front and back photographs for the selected variant and give both a useful alternative description.

Before launch

Integration files
sections/ww-effect.liquid
{% comment %} WESWOO example shell. Add ONE effect's HTML inside .fx-slot. {% endcomment %}
{{ 'ww-effects.css' | asset_url | stylesheet_tag }}
<section id="ww-effect-{{ section.id }}" data-ww-effect-section>
  <h2>{{ section.settings.heading | escape }}</h2>
  <button type="button" data-effect-toggle aria-pressed="false">Play / pause effect</button>
  <div class="fx-slot">
    {% comment %} Insert the chosen .fx element here; read copy/images from section settings. {% endcomment %}
  </div>
</section>
<script type="module" src="{{ 'ww-effect-section.js' | asset_url }}"></script>
{% schema %}
{"name":"WESWOO effect","settings":[{"type":"text","id":"heading","label":"Heading","default":"Our story"}],"presets":[{"name":"WESWOO effect"}]}
{% endschema %}

Insert the selected effect into the shell. Each module loads one effect; multiple types need an explicit registry and Section mapping.

Sources and further reading

Scope and licensing

Examples are authored by WESWOO and credited open-source contributors; retain their applicable licenses. Project screens and photographs remain with their rights holders. Downloads use placeholders; replace them with imagery you may use.

Shopify/dawn · modal / slider base classesShopify/dawn · product media galleryShopify/dawn · license

References checked · 2026-11-24