Project portfolio Browse selected work

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

Search
Galleries & detail viewing

Reveal captions over photographs

Open a portrait, read its caption and close before moving on. Make the same caption reachable by keyboard and touch.

Tap a caption on mobile and select a different card by keyboard. Verify caption and destination follow the final card and remain accessible without hover or animation.

The default caption opened and closed. With reduced motion it started expanded and stayed readable after both selections.

Reproduce the test and inspect the readings

Select the first photo twice and read its caption’s expanded state.

908 and 316 px, default motion
false then true then false
908 and 316 px, reduced motion
true then true then true

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)

Preparing preview

How the effect works

Start with the reader’s task

Start with a photograph, then reveal a concise caption by hovering or tapping.

Keep imagery and interaction clear

Provide meaningful alternatives and source attribution. Replace the sample with material you may use, then test mobile input, motion preferences and page scrolling.

Example source code

View 3 source filesHTML · CSS · MJS
lookbook-reveal.html
<section class="fx lookbook-demo" data-effect="lookbook-reveal"><header class="lb-header"><p class="lb-eyebrow">WESWOO / Visual showcase</p><h2>Real photography.<br>A story worth exploring.</h2><p class="lb-intro">Explore materials, settings and visual storytelling through three portrait photographs. Hover or tap to reveal the description; tap again or press Escape to close. This is a visual interaction demo.</p></header><section class="lb-grid" aria-label="Portrait photography"><button type="button" class="lb-card" aria-expanded="false" aria-controls="lb-detail-1"><img src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22480%22%20height%3D%22640%22%20viewBox%3D%220%200%20480%20640%22%3E%3Crect%20width%3D%22480%22%20height%3D%22640%22%20fill%3D%22%23e8ece6%22%2F%3E%3Ctext%20x%3D%22240%22%20y%3D%22300%22%20text-anchor%3D%22middle%22%20font-family%3D%22sans-serif%22%20font-size%3D%2221%22%20fill%3D%22%2340564b%22%3EReplace%20image%201%3C%2Ftext%3E%3Ctext%20x%3D%22240%22%20y%3D%22338%22%20text-anchor%3D%22middle%22%20font-family%3D%22sans-serif%22%20font-size%3D%2215%22%20fill%3D%22%2340564b%22%3EUse%20your%20own%20licensed%20photograph%3C%2Ftext%3E%3C%2Fsvg%3E" alt="A portrait in warm light"><span class="lb-photo-label">01 / Portrait</span><span class="lb-caption" id="lb-detail-1"><span class="lb-index">PORTRAIT 01</span><strong>A portrait in warm light</strong><p>Warm light and posture shape the composition.</p><span class="lb-action">Tap to close · Interaction demo</span></span></button><button type="button" class="lb-card" aria-expanded="false" aria-controls="lb-detail-2"><img src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22480%22%20height%3D%22640%22%20viewBox%3D%220%200%20480%20640%22%3E%3Crect%20width%3D%22480%22%20height%3D%22640%22%20fill%3D%22%23e8ece6%22%2F%3E%3Ctext%20x%3D%22240%22%20y%3D%22300%22%20text-anchor%3D%22middle%22%20font-family%3D%22sans-serif%22%20font-size%3D%2221%22%20fill%3D%22%2340564b%22%3EReplace%20image%202%3C%2Ftext%3E%3Ctext%20x%3D%22240%22%20y%3D%22338%22%20text-anchor%3D%22middle%22%20font-family%3D%22sans-serif%22%20font-size%3D%2215%22%20fill%3D%22%2340564b%22%3EUse%20your%20own%20licensed%20photograph%3C%2Ftext%3E%3C%2Fsvg%3E" alt="A street fashion portrait against blue architecture"><span class="lb-photo-label">02 / Street style</span><span class="lb-caption" id="lb-detail-2"><span class="lb-index">STREET 02</span><strong>Street style in blue</strong><p>A portrait and blue architecture create a strong colour contrast.</p><span class="lb-action">Tap to close · Interaction demo</span></span></button><button type="button" class="lb-card" aria-expanded="false" aria-controls="lb-detail-3"><img src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22480%22%20height%3D%22640%22%20viewBox%3D%220%200%20480%20640%22%3E%3Crect%20width%3D%22480%22%20height%3D%22640%22%20fill%3D%22%23e8ece6%22%2F%3E%3Ctext%20x%3D%22240%22%20y%3D%22300%22%20text-anchor%3D%22middle%22%20font-family%3D%22sans-serif%22%20font-size%3D%2221%22%20fill%3D%22%2340564b%22%3EReplace%20image%203%3C%2Ftext%3E%3Ctext%20x%3D%22240%22%20y%3D%22338%22%20text-anchor%3D%22middle%22%20font-family%3D%22sans-serif%22%20font-size%3D%2215%22%20fill%3D%22%2340564b%22%3EUse%20your%20own%20licensed%20photograph%3C%2Ftext%3E%3C%2Fsvg%3E" alt="A studio portrait against a dark background"><span class="lb-photo-label">03 / Studio portrait</span><span class="lb-caption" id="lb-detail-3"><span class="lb-index">STUDIO 03</span><strong>A quiet studio portrait</strong><p>A dark backdrop keeps the focus on the portrait.</p><span class="lb-action">Tap to close · Interaction demo</span></span></button></section><div class="lb-dots" aria-label="Gallery pages"><button type="button" data-lb-dot aria-label="1" aria-pressed="true"></button><button type="button" data-lb-dot aria-label="2" aria-pressed="false"></button><button type="button" data-lb-dot aria-label="3" aria-pressed="false"></button></div></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

  • Photography, lookbooks or collections; sample photographs are from Codrops ColumnScroll, which credits Unsplash.

Interaction

  • Mouse, keyboard and touch use the same state; the online preview shows portrait photography.

Touch and accessibility

  • Reduced motion shows the result directly; mobile retains usable controls and normal page scrolling.

Setup notes for this effect

The sample imagery is for project context; use images you have rights to and test against the actual theme.

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