Skip to main content
Version: 3.x

React Scroll Parallax

NPM Version Latest NPM Downloads Codecov

Test and Lint Storybook Storybook

React hooks and components to create parallax scroll effects for banners, images or any other DOM elements. Utilizes Parallax Controller to add vertical or horizontal scrolling based effects to elements. Optimized to reduce jank on scroll and works with SSR and SSG rendered React apps.

If you're coming from V2, here's a migration guide.

Install​

4.0 Beta

Drives parallax with the Web Animations API for scroll-linked animations. If you're upgrading from v3, see the migration guide.

Install the beta tag to try it:

npm install react-scroll-parallax@beta

With npm

npm install react-scroll-parallax

Example​

Create effects with a hook:

function Component() {
const parallax = useParallax({
speed: -10,
});
return <div ref={parallax.ref} />;
}

or with a component:

function Component() {
return (
<Parallax speed={-10}>
<div />
</Parallax>
);
}

Getting Started​

Demos​

Docs: Hooks​

Docs: Components​