Parallax Trigger
A utility section creating "curtain" reveal effects. Content above stays sticky while sections below scroll over it for dramatic visual transitions.
Overview
The Parallax Trigger creates sophisticated scroll effects used by luxury brands. Place it between sections to trigger the "curtain" effect.
Curtain Effect
Sticky Content
Video Reveal
Luxury Feel
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
- 1Position a section you want to be sticky (like a video or hero)
- 2Add Parallax trigger immediately after that section
How It Works
The Parallax Trigger has no settings because it's purely a positioning utility:
- You add a section (e.g., a video hero)
- You add the Parallax Trigger immediately after
- The section above becomes sticky at the top of the viewport
- 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
Image Hero + Content
1. Hero Banner (full-bleed) ā 2. Parallax Trigger ā 3. Text Block (scrolls over) ā 4. Collection Grid
Technical Details
The section:
- Takes up zero space in the layout (height: 0)
- Is invisible (
display: noneon 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
- Use with impactful visuals ā Videos and large images work best
- Keep sticky sections short ā Viewport height or less is ideal
- Solid backgrounds required ā Don't forget this on following sections
- Test the scroll experience ā Ensure it feels natural
Performance
- Limit use to one per page ā Multiple parallax triggers can be disorienting
- Optimize sticky content ā Heavy videos will stay in memory
- 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