Rallax.js is a Vanilla JS plugin that implements a dynamic parallax scrolling effect, without dependencies.
Explore a variety of options, including:
- Changing parallax speed
- Conditionally disabling and enabling the effect
- Compensating for mobile devices
Website// example code for 'dead' block
const dead = rallax('.dead')
dead.when(
() => window.scrollY > 750,
() => dead.stop()
).when(
() => window.scrollY < 750,
() => dead.start()