Project portfolio Browse selected work

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

Search
Galleries & detail viewing

Animated collection filters

Select warm, cool and then all products. Check membership, count and restored order independently of the movement animation.

Compare matching IDs, visible cards and total after the transition. Check filtering and stale responses before investigating hidden styles.

Filtering four items to two and resetting restored all four. The return step catches products that disappear permanently after the first filter.

Reproduce the test and inspect the readings

Switch from all products to warm tones and back to all, reading the result count.

908 and 316 px, both preferences
4 products then 2 products then 4 products

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 pxWarm tonesSelecting Warm tones narrowed four products to two, Rose tee and Ochre tee.
1440 / 908 pxWarm tonesSelecting Warm tones narrowed four products to two, Rose tee and Ochre tee.

Preparing preview

How the effect works

Make the new results easy to read

Try Warm tones and Cool tones. Hidden items leave the reading order immediately, while the remaining cards move and the count updates.

Example source code

View 3 source filesHTML · CSS · MJS
collection-filter-motion.html
<section class="fx filter-demo" lang="en" aria-label="Collection filter preview">
  <h2>Shop by color</h2>
  <div class="filter-actions" role="group" aria-label="Color family">
    <button type="button" data-filter="all" aria-pressed="true">All</button>
    <button type="button" data-filter="warm" aria-pressed="false">Warm tones</button>
    <button type="button" data-filter="cool" aria-pressed="false">Cool tones</button>
  </div>
  <p class="filter-count" role="status">4 products</p>
  <ul class="filter-cards"><li data-tone="cool"><figure><img src="__WW_VISUAL_1__" alt="Front of a sky T-shirt"><figcaption>Sky blue tee</figcaption></figure></li>
<li data-tone="warm"><figure><img src="__WW_VISUAL_2__" alt="Front of a rose T-shirt"><figcaption>Rose tee</figcaption></figure></li>
<li data-tone="warm"><figure><img src="__WW_VISUAL_3__" alt="Front of a ochre T-shirt"><figcaption>Ochre tee</figcaption></figure></li>
<li data-tone="cool"><figure><img src="__WW_VISUAL_4__" alt="Front of a sage T-shirt"><figcaption>Sage tee</figcaption></figure></li></ul>
</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

  • Collections, product lines and lookbooks with filters.

Interaction

  • Update visible products and their count. Animate only the cards the shopper can still see.

Touch and accessibility

  • Tap a filter on mobile. Reduced motion applies the results immediately.

Setup notes for this effect

Use Shopify to supply the collection results and keep filter state in the URL.

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