Swiper
Swiper is an open-source JavaScript slider library. It handles touch gestures, breakpoints, pagination and looping for horizontal rails, and it runs standalone with no framework behind it. Shopify themes commonly enqueue one copy of it globally and let individual sections initialize their own instances against that copy rather than bundling their own.
Documented at https://swiperjs.com/.
How We've Used It
It is the carousel our sections lean on most, and the pattern is one global copy, many local instances: a section finds the enqueued library instead of shipping a second one, then initializes only what it needs. Two habits recur. Rails defer initialization until the carousel is near the viewport, so a page carrying several of them doesn't build all of them at first paint. And the markup is authored to be laid out correctly before the library touches it, so a row doesn't reflow when its instance mounts. Where a section has to be a grid above a breakpoint and a rail below it, the instance is constructed and destroyed on the breakpoint rather than left running.
Builds Using It
- Merchandisable featured-product carousel with badge engine and inline add-to-bag — LUS Brands
- Rotating announcement carousel above the header, with pause control — Nudestix
- 'Bundle and save' PDP block driven by a product-list metafield — LUS Brands
- Cart page rebuilt around loyalty points, protected gifts and a dark order summary — Nudestix
- Shop-by-category carousel with collection-aware card fallbacks — LUS Brands
- Homepage hero carousel v2 - video and split-image slides with per-slide typography control — Nudestix
- Kids featured collection: a custom element that builds its Swiper on approach and wraps the theme's own product cards — LUS Brands
- Accessible play/pause web component for autoplaying hero video — Nudestix
- Homepage exclusive-offers rail with caption heights equalized in idle time — Nudestix
- Before/after customer results carousel with an attached product card — Nudestix
19 further gated builds use it; their pages follow.
Related Entities
Our Role
Integration. We initialize and configure the library inside our own sections; the library itself is open source and stays as published.