Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

react-scroll-parallax

> 前端框架
Open source

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

3.0K stars0 likes0 views
WebsiteGitHub

About

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

React Scroll Parallax

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

bash
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.

bash
npm install react-scroll-parallax@beta

Example

Create effects with a hook:

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

or with a component:

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

Getting Started

Read the documentation for setup and usage instructions.

  • Usage
  • Usage with NextJS 13
  • How it works

Demos

  • Storybook v3 - Source Code
  • Demo 1 - Source Code
  • Horizontal Scroll - Source Code
  • Full Page Banner - Source Code
  • Demo 2 - Source Code (old 2.x version)

Docs: Hooks

  • useParallax()
  • useParallaxController()

Docs: Components

  • <Parallax>
  • <ParallaxBanner>
  • <ParallaxProvider>

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptanimationbannercomponenteffects

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架