
Here's everything you need β two files delivered:
π¦ What's included
parallax-banner.liquid β the complete section file
parallax-banner-guide.html β the full visual installation guide
π 6-step installation (any Shopify theme)
Admin β Online Store β Themes β β― β Edit code
Open the Sections folder β Add a new section β name it parallax-banner
Paste the entire .liquid file contents β Save
Go to Customize β Add section β search Parallax Banner
Upload your background image + add blocks
Save to publish live
β¨ How the parallax depth works
Layer
Behaviour
.parallax-banner__bg
translateY applied via rAF at speed Γ scroll delta β moves slower
.parallax-banner__content-wrap
Sits at z-index: 1, untouched β scrolls normally
Background inset
Extended to -30% top/bottom so image always fills the frame
The speed slider (0β1) in the editor controls the depth intensity directly.
π± Mobile & accessibility
Parallax auto-disabled below 750px β cleaner UX on touch devices
prefers-reduced-motion respected β static banner for users who need it
rAF + ticking flag β never runs more than once per paint frame
Full srcset (750px β 2400px) + fetchpriority="high" for LCP