pmndrs / pmndrs/react-spring

Parallax Scroll Snap

Open
#1,608 8 comments 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind: request
Dominant language
TypeScript
Stars
29.1k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

🚀 Feature Proposal

Just like CSS Scroll Snap, but for react-spring's Parallax.

Because ParallaxLayers are position: absolute, CSS Scroll Snap can't work for them. Example here.

I'd like to propose that we perhaps follow the CSS Scroll Snap API and implement it for react-spring's Parallax.

Motivation

This would greatly help developer productivity. 😄

Example

<Parallax scrollSnapType="mandatory">
    <ParallaxLayer scrollSnapAlign="start">...</ParallaxLayer>
</Parallax>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the Parallax and ParallaxLayer entry points and compare their behavior with the CSS Scroll Snap API. Determine how scrollSnapType and scrollSnapAlign should interact with the absolute-positioned layers, then define the expected snapping behavior and tests before implementing it.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.