Skip to content
Order a siteinfo@onetrickweb.com
E-commerce

The product gallery on a phone: it obeys the finger, not the page

More than half of shoppers open a product page on a phone, and the first thing they do is touch the photos: swipe, drag, spread two fingers. A typical gallery answers those gestures late, with page jumps and by zooming the entire screen. Below are four things we built into the photo gallery, shown on a live project: Nectar Lingerie, a lingerie and loungewear store with its own production.

01

The photo follows the finger, and the page holds still

On a phone people browse a product with their fingers: they swipe the photo to see the next one. In a typical gallery several things go wrong at that moment: the photo does not move until the finger lifts, the next frame arrives late behind a grey placeholder, and if it has different proportions the whole page jumps and the “Add to cart” button slides out from under the thumb. We drive the gesture ourselves. The photo strip follows the finger in real time, a short quick flick turns the page just like a long drag, and you can loop through the photos in either direction from any frame.

  • Neighbouring frames are preloaded. While the visitor looks at the current photo, the browser is already fetching the previous and the next one — switching is instant, with no grey placeholder. Preloading starts after a pause and only while the tab is active, so it never steals bandwidth from what the person is already looking at.
  • The frame keeps its height. The photo block takes its height from the first frame and never changes it, so everything below the photo stays put while browsing.
  • Tapping either half of the photo also turns the page — back or forward — and the tapped half lights up for a moment so it is clear where the tap landed.
A swipe on a phone: the strip follows the finger, the neighbouring frame is already there, and after release it settles on its own. The page below has not moved.
A swipe on a phone: the strip follows the finger, the neighbouring frame is already there, and after release it settles on its own. The page below has not moved.
02

Bars instead of dots: you always know where you are, even with sixty photos

Under the photo, galleries usually draw a row of dots, one per frame. With ten photos that is tolerable; with sixty, the dots merge into a grey picket fence across the whole screen and it becomes impossible to tell where you are. We replaced the dots with bars, like the stories format in social apps. Seven bars are visible at a time, the strip scrolls along with the active one, and the bars at the edges fade — so it is immediately clear there are more frames beyond. Frames already seen are filled, frames ahead are empty, and the active bar shows a running progress.

  • The gallery advances on its own. Only on phones and only while it is being looked at: each frame shows for four seconds, and the progress in the bar runs for exactly that long — the two cannot drift apart, because the frame changes when the bar animation ends.
  • It pauses when it should. Autoplay stops while a finger rests on the photo, while the tab is hidden or the gallery has scrolled off screen, and it is switched off entirely if the person has asked their phone for less motion.
The bars under the photo: progress runs along the active one, the frame advances by itself, and the moment a finger rests on the photo the progress freezes.
The bars under the photo: progress runs along the active one, the frame advances by itself, and the moment a finger rests on the photo the progress freezes.
03

Pinching enlarges the photo, not the whole page

Fabric, seams, hardware — people want to see them up close. The shopper does what they always do: spreads two fingers. On a typical site the whole page zooms in response — the header, the price and the “Add to cart” button slide off screen, and then everything has to be pinched back. Here, two fingers enlarge only the photo, right inside its frame, up to four times. The page stays where it was. While the photo is enlarged, one finger pans it around the frame and it never drifts past its edges — there is nothing beyond them. A tap restores the original size, and changing the frame resets everything too. The largest version of the file is fetched for the enlarged frame, so the details are actually visible.

A pinch enlarges the photo inside its frame, one finger pans it, a tap restores the size. The site header and the indicator stay put.
A pinch enlarges the photo inside its frame, one finger pans it, a tap restores the size. The site header and the indicator stay put.

FAQ about the product gallery

How is your gallery different from the usual carousel in a store template?

A usual carousel hands the gesture to the browser and reacts only after the finger lifts. Ours moves the photo with the finger in real time, preloads the neighbouring frames, keeps the frame height so the page does not jump, shows the position with progress bars, and enlarges only the photo on a pinch — not the whole page.

What happens when a product has a great many photos?

The indicator shows a window of seven bars and scrolls with the active one; the bars at the edges fade, so it is clear there are more frames. Only three frames are ever in the page markup — previous, current and next — so a product with sixty photos does not get heavier.

Does autoplay annoy shoppers?

It runs only on phones and only while the gallery is being looked at: it pauses under a finger, when the tab is hidden or the gallery scrolls off screen, and it is switched off entirely if the phone is set to reduce motion.

Does pinch-to-zoom work on any phone?

Yes — it is the ordinary two-finger gesture every phone understands. The difference is that the photo enlarges inside its own frame instead of the whole page, and the large file is fetched for the enlarged frame.

Is this included in the price of a store or built separately?

Included. A gallery with these gestures is part of the standard product page in the stores we build and run on subscription.

Want a gallery like this?

A gallery with these gestures is not a “paid extra” but part of the standard product page in the stores we build and run on subscription. Fill in the brief and we’ll show how it works on your photos.

Fill in the brief