Documentation

Component: Scroll Parallax Smooth scroll-based parallax animation

The Scroll Parallax component moves elements relative to the scroll position of the page. It creates depth and motion by translating elements vertically or horizontally while the page scrolls.

What the Scroll Parallax module does

This module creates a parallax effect based on page scrolling. Elements inside a parallax container move relative to the viewport.

  • Smooth scroll-based movement
  • Vertical or horizontal movement
  • Configurable speed and direction
  • Supports additional transform properties
Files location
HTML / SCSS / JS files live in: src/components/effects/parallax/

Basic usage

Add the attribute data-anim-parallax-parent to a container and place parallax elements inside it.

Basic parallax markup
<div class="parent" data-anim-parallax-parent>

	<div data-anim-parallax class="child">
		Content
	</div>

	<div class="child" data-anim-parallax>
		Content
	</div>

</div>

Animation smoothness

Control how smoothly the element follows the scroll position.

  • data-anim-parallax-smooth
Tip
Lower values produce faster movement.
Smoothness example
<div data-anim-parallax-parent data-anim-parallax-smooth="10">
...
</div>

Reference center point

Define how the parallax offset is calculated relative to the viewport.

  • top
  • center
  • bottom
Center example
<div
	data-anim-parallax-parent
	data-anim-parallax-center="top">
...
</div>

Parallax element settings

Each parallax element can define its own movement settings.

  • data-anim-parallax-direction="1 | -1"
  • data-anim-parallax-coefficient="5"
  • data-axis="v | h"
  • data-anim-parallax-properties
Element configuration
<div
	data-anim-parallax
	data-anim-parallax-direction="1"
	data-anim-parallax-coefficient="10"
	data-axis="v">
</div>

Download

Add depth and motion to your layouts using smooth scroll-based parallax animations.