Back to Trending
RepositoryTypeScriptUSUnited States
jscottsmith

jscottsmith/react-scroll-parallax

🔮 React hooks and components to create parallax scroll effects for banners, images or any other DOM elements.

3.0kstars
152forks
4issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: parallax

#1 Repository of the week

1
TINIX TRENDING·Topic: banner

#1 Repository of the week

1
TINIX TRENDING·Topic: component

#1 Repository of the week

React Scroll Parallax

NPM Version Latest NPM Downloads Codecov

Test and Lint Storybook Storybook

React hooks and components to create scroll-driven parallax effects for banners, images, or any other DOM elements. Built on Parallax Controller, powered by the Web Animations API where each element is driven by a ScrollTimeline or ViewTimeline. Apply translate, rotate, scale, and opacity keyframes with scroll progress on the compositor and don't block the main thread.

Install

With npm

npm install react-scroll-parallax

Try 4.0 Beta

Uses the latest Parallax Controller built with Web Animations API for scroll-driven animations.

If you're upgrading from V3, here's a migration guide to the v4 beta.

npm install react-scroll-parallax@beta

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

Read the documentation for setup and usage instructions.

Demos

Docs: Hooks

Docs: Components

Similar Projects

Discover other similar projects and AI models.

RepositoryJavaScript
alexfoxy/lax.js

Simple & lightweight (<4kb gzipped) vanilla JavaScript library to create smooth & beautiful animations when you scroll.

10.4k
May 21, 2025
RepositoryJavaScript
alexfoxy/lax.js

Simple & lightweight (<4kb gzipped) vanilla JavaScript library to create smooth & beautiful animations when you scroll.

10.4k
May 21, 2025
RepositoryTypeScript
pmndrs/zustand

🐻 Bear necessities for state management in React

59.0k
Nov 23, 2026
RepositoryTypeScript
TanStack/query

🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.

50.7k
Nov 26, 2026
RepositoryTypeScript
geosigno/simpleParallax.js

A lightweight React & vanilla JavaScript library that adds a parallax effect to any image.

2.2k
Nov 25, 2026
RepositoryTypeScript
freeCodeCamp/freeCodeCamp

freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

459.9k
Dec 2, 2026
RepositoryJavaScript
greensock/GSAP

GSAP (GreenSock Animation Platform): high-performance JavaScript animation for anything JavaScript can touch. 100% free, including every plugin.

31.6k
Nov 4, 2026
RepositoryJavaScript
jlmakes/scrollreveal

Animate elements as they scroll into view.

22.5k
Nov 11, 2026
RepositoryJava
florent37/MaterialViewPager

A Material Design ViewPager easy to use library

8.1k
Oct 12, 2018