Parallax Trigger

A utility section creating "curtain" reveal effects. Content above stays sticky while sections below scroll over it for dramatic visual transitions.

šŸ“ sections/parallax-trigger.liquidā±ļø 2 min setup

Overview

The Parallax Trigger creates sophisticated scroll effects used by luxury brands. Place it between sections to trigger the "curtain" effect.

šŸ“œ

Curtain Effect

Sections scroll over content
šŸ“Œ

Sticky Content

Pin the section above
šŸŽ¬

Video Reveal

Great for background videos
šŸ’Ž

Luxury Feel

High-end visual storytelling

When to Use

  • After video sections — Let a video stay visible while content scrolls over
  • Hero transitions — Create a dramatic reveal as visitors scroll
  • Visual storytelling — Build narrative through scroll-based reveals
  • Luxury aesthetics — High-end brands use this effect extensively

Quick Setup

Add Parallax Trigger in 2 Steps

  1. 1Position a section you want to be sticky (like a video or hero)
  2. 2Add Parallax trigger immediately after that section

How It Works

The Parallax Trigger has no settings because it's purely a positioning utility:

  1. You add a section (e.g., a video hero)
  2. You add the Parallax Trigger immediately after
  3. The section above becomes sticky at the top of the viewport
  4. All sections below slide over the sticky section like a curtain

Visual Example

ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
│  [Video Section]            │  ← Becomes STICKY
│  - Will stick at top        │
ā”œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¤
│  [Parallax Trigger]         │  ← Invisible, takes no space
ā”œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¤
│  [Product Grid]             │  ← Slides OVER the video
│  - Must have solid bg       │
ā”œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¤
│  [Reviews]                  │  ← Also slides over
│  - Must have solid bg       │
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜

Requirements

Sections Before the Trigger

The section immediately preceding the parallax trigger:

  • Will become position: sticky
  • Will stay at the top of the viewport
  • Should have visual content worth revealing (video, hero image, etc.)

Sections After the Trigger

All sections following the parallax trigger must:

  • Have a solid background color (not transparent)
  • If background is transparent, the theme will apply a default white background

āš ļø Important: If your sections below have transparent backgrounds, the sticky content beneath will be visible, breaking the "curtain" effect. Ensure all following sections have solid backgrounds.


Ideal Section Combinations

šŸŽ¬

Video Hero + Products

1. Reveal Video (stays sticky) → 2. Parallax Trigger → 3. Product Grid (scrolls over) → 4. Reviews

Best for: Brands with video content
šŸ–¼ļø

Image Hero + Content

1. Hero Banner (full-bleed) → 2. Parallax Trigger → 3. Text Block (scrolls over) → 4. Collection Grid

Best for: Story-driven pages

Technical Details

The section:

  • Takes up zero space in the layout (height: 0)
  • Is invisible (display: none on the inner div)
  • Has aria-hidden="true" for accessibility
  • Uses JavaScript to apply sticky positioning dynamically

Sticky Positioning Logic

  • If the sticky section is shorter than viewport: sticks at top
  • If the sticky section is taller than viewport: sticks when bottom reaches viewport bottom (so you can see the entire section scroll up)

Best Practices

Design Considerations

  1. Use with impactful visuals — Videos and large images work best
  2. Keep sticky sections short — Viewport height or less is ideal
  3. Solid backgrounds required — Don't forget this on following sections
  4. Test the scroll experience — Ensure it feels natural

Performance

  1. Limit use to one per page — Multiple parallax triggers can be disorienting
  2. Optimize sticky content — Heavy videos will stay in memory
  3. Consider mobile — Effect works but may be less impactful on small screens

Accessibility

  • The trigger is hidden from screen readers
  • Sticky sections remain accessible
  • Content flow is maintained for keyboard navigation

Troubleshooting

Effect not working

  • Verify the Parallax Trigger is placed directly after the target section
  • Check for other sections between the target and trigger
  • Ensure JavaScript is enabled

Content shows through the "curtain"

  • Following sections must have solid backgrounds
  • Add a background color to transparent sections
  • Check color scheme settings on the following sections

Sticky section too tall

  • The section will still work but sticks when bottom reaches viewport
  • Consider making the sticky section viewport-height or shorter
  • Use responsive height settings on the sticky section

Multiple sticky sections

  • Only place one Parallax Trigger per page
  • Multiple triggers may cause unpredictable z-index issues
  • If you need multiple effects, reconsider the page design