How Astroid Implements Parallax
Parallax is a visual scrolling effect where the background moves slower (or stays fixed) and the foreground content (text, modules) scrolls normally. In Astroid, parallax is not a standalone feature toggle. Itβs achieved through background settings in Sections. This creates a depth illusion (3D-like feel) instead of a flat page. Besides, it's ideal for:
- Hero sections
- Call-to-action blocks
- Landing pages
Background Image + Attachmentβ
From Astroid layout, you can edit a section > Settings
-
You can choose a background type: image or video
-
Then control its behavior with:
- Background Attachment
- Background Position, size, repeat, overlay, etc.
π The key option for parallax is:
Background Attachment = Fixed: This makes the image stay in place while content scrolls β classic parallax effect.
Enable Parallax Effect Optionβ
After uploading a background image, you can enable the parallax option:
- Enable parallax effect: Enable parallax effect for the background image. When enabled, the background image will move at a different speed than the foreground content as you scroll, creating a sense of depth and immersion.
Parallax Speedβ
Parallax Speed: Controls how fast the background moves relative to content.
Example values:
- 0.5 β background moves slower than content (most common)
- 1 β same speed (almost no parallax effect)
- < 0.5 β very slow, subtle effect
- > 1 faster than content (can feel unnatural)
π Recommendation:
Use 0.3 β 0.6 for smooth, professional feel, and avoid extreme values unless for creative effects.
Scrub (seconds)β
Scrub: Controls how smooth/delayed the animation follows scroll.
- Lower value (e.g. 0 β 0.5) β animation follows scroll immediately
- Higher value (e.g. 1 β 3) β animation has a delay / easing effect
π Recommendation:
0.5 β 1.5 β smooth and responsive 2+ β cinematic but slightly laggy feel