Scroll · data-cue-scroll="parallax"
Parallax
Drifts against the page as you scroll, by its depth. Positive depths sit further back and move slower, negative ones come forward. It moves with the translate property, so it combines with an entrance. Off with reduced motion.
depth 0.6
depth -0.4
Markup
<img data-cue-scroll="parallax" data-cue-depth="0.3" src="…" alt="…">
Options
| Attribute | What it does | Default |
|---|---|---|
data-cue-depth | -1 to 1: how far back (positive) or forward (negative) | 0.3 |
With motion off
Still. Turn motion off at the top of the page to see it.