pmndrs / pmndrs/react-spring

[bug]: when ParallayLayer is sticky, it disappears after start and appears at end again

Open
#2,052 9 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Which react-spring target are you using?
  • @react-spring/web
  • @react-spring/three
  • @react-spring/native
  • @react-spring/konva
  • @react-spring/zdog
What version of react-spring are you using?

9.6.1

What's Wrong?

When the ParallaxLayer is sticky, it does not work as demonstrated in the example. Between the start and end points, the Layer vanishes. It is only visible at the start and end point.

To Reproduce

In another Bug report: reaink has produced a repo where you can see the reproduced problem.

Example: https://codesandbox.io/s/parallax-part-component-layer-kg5yw0

Expected Behaviour

The layer should be sticky between the start and end value and should not disappear and reappear.

Link to repo

Example: https://codesandbox.io/s/parallax-part-component-layer-kg5yw0

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 with the linked CodeSandbox and the @react-spring/web ParallaxLayer implementation, focusing on how sticky layers are positioned between their start and end values. Reproduce the disappearance during scrolling, then verify that the layer remains visible throughout the sticky interval.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.