Project portfolio Browse selected work

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

Search
Galleries & detail viewing

Change the webpage image view

Go to the full frame on a phone and return to the first detail. Compare frame, scale and fitting while the source image stays constant.

Why does the full mobile banner now have gray bands above and below it?

Contain changed the picture fit but left the tall frame. With Dawn 15.4.1’s Image banner template and styles, a 1200 × 500 image at 390 px occupied a 340 px Medium frame. Contain recovered both edges but left 178 gray rows. Adapting the height to the first image gave a roughly 163 px frame, both edges and zero gray rows.

In a duplicate theme, open the affected Image banner and change Banner height from Medium to Adapt to first image. Check the saved preview. If the tall mobile banner must remain, prepare a portrait composition. Recheck with real headings, buttons, a second image or stacking enabled.

Compare results, scope and replay code

390 px / Medium: 340 px high, both edge landmarks cropped.

Same frame with contain: both edges, 178 gray rows in total. Adapt: 163 px tall, zero gray rows.

Medium: edges cropped
Medium: edges cropped
Same height: bands above and below
Same height: bands above and below
Adapt: frame follows the image
Adapt: frame follows the image

The merchant’s follow-up explicitly reports bands after recovering the full image. We rendered a pinned Dawn template with its two original stylesheets and sampled screenshot pixels, substituting a calibration image for Shopify image filters. The historical merchant theme and private CSS were not inspected.

WESWOO tested Chrome 157.0.8103.79. In a clean directory with Node.js 22 or newer, run npm install playwright liquidjs@10.21.1, then npx playwright install chromium, then node weswoo-dawn-frame.cjs. The script fetches three pinned files from Shopify’s repository and checks their SHA-256. Add --screens to save all three screenshots.

Download replay script (.cjs)

Original question · Shopify Dawn 15.4.1 · Image banner · Shopify Dawn 15.4.1 · Image banner CSS · MDN · object-fit

How do I hide just the homepage slideshow on phones and keep the product gallery?

Scope the mobile media query to the homepage section’s wrapper ID. Inspect the ID generated by your theme and replace the sample home-hero ID. Test both sides of the breakpoint and a separate gallery link.

Two sections shared one page. We checked the hero and gallery at four widths, then intentionally applied a broad selector.

Compare results, scope and replay code

At 390 and 749 pixels only the hero was hidden. At 750 and 1280 both were visible. A broad section rule also hid the second gallery.

This merchant explicitly wanted to hide the slideshow. For a visible, uncropped image, use the framing comparison on this page. Hiding a section does not establish any download savings.

@media (max-width: 749px) {
  #shopify-section-home-hero { display: none; }
}

Tested in Chrome 157.0.8103.79. In a clean directory with Node.js 22 or later run, in order, npm install playwright → npx playwright install chromium → node weswoo-slideshow-width.cjs.

Download replay script (.cjs)

Original question · MDN · Media queries

Open the loaded asset separately before comparing the three frames. The shared source is a website screenshot. This study addresses framing, not physical product fit in a room.

Narrowing the preview from 908 to 316 px changed three fully visible FMS frames to one. Changing only the motion preference left that count unchanged.

Reproduce the test and inspect the readings

Count cards fully inside the rail and report fully visible / total.

908 px, both preferences
3 / 3
316 px, both preferences
1 / 3

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 pxOpen the framing comparisonThe same FMS screenshot has detail, mid-frame and full-image views. Fully visible cards at this width: 1 of 3.
1440 / 908 pxOpen the framing comparisonThe same FMS screenshot has detail, mid-frame and full-image views. Fully visible cards at this width: 3 of 3.
See the WESWOO test and results

Compare the edges of the first two frames with the full screenshot in the third. At phone width, select the last dot for the full frame, then return with the first dot.

Framing or viewportObserved result
Detail / mid-frameSame file, cover, scaled 1.50× / 1.15×
Full frameSame file, contain, no added scale
1440 px window / 908 px previewThree frames fit without horizontal travel
390 px window / 316 px previewSelecting the last dot moved the rail 438 px from its start

Pixel values belong to this page layout. The asset is a project-page screenshot. The test compares framing and says nothing about physical product size or performance.

WESWOO · 2026-11-24 · Chrome 157.0.8103.79 · Public demo with reduced motion

Preparing preview

How the effect works

Observed result

All three views use one FMS project screenshot. They sit side by side on desktop. On the phone, the last dot brings the full frame into view. The third view changes image fitting while keeping the same file URL.

How to use

Narrow, medium and wide frames show an FMS screenshot crop, not real breakpoint behavior.

Example source code

View 3 source filesHTML · CSS · MJS
space-fit-study.html
<section class='fx gallery' lang='en'><div class='rail'><article class='card'><div class='view crop0'><img src='https://www.weswoo.com/wp-content/themes/weswoo/assets/images/case-brands/project-previews/fms-preview.webp' alt='FMS WESWOO project page screenshot' loading='lazy'></div><h3>Detail crop · FMS</h3></article><article class='card'><div class='view crop1'><img src='https://www.weswoo.com/wp-content/themes/weswoo/assets/images/case-brands/project-previews/fms-preview.webp' alt='FMS WESWOO project page screenshot' loading='lazy'></div><h3>Mid-frame · FMS</h3></article><article class='card'><div class='view crop2'><img src='https://www.weswoo.com/wp-content/themes/weswoo/assets/images/case-brands/project-previews/fms-preview.webp' alt='FMS WESWOO project page screenshot' loading='lazy'></div><h3>Full image · FMS</h3></article></div><nav class='dots'><button data-dot type='button' aria-label='Screen 1' aria-pressed='true'></button><button data-dot type='button' aria-label='Screen 2' aria-pressed='false'></button><button data-dot type='button' aria-label='Screen 3' aria-pressed='false'></button></nav></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

  • For browsing and discussing webpage imagery; all views crop the same real screenshot.

Interaction

  • Three cards show the upper detail, middle area and full screenshot; swipe to select on phones.

Touch and accessibility

  • All three views remain visible without scripting; the full screenshot retains its original ratio.

Setup notes for this effect

Replace sample images with imagery you may use, then test the interaction in the theme editor and on phones.

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