![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@react-spring/parallax
Advanced tools
This package exports the Parallax
and ParallaxLayer
components. Both are wrapped with React.memo
.
Parallax
creates a scroll container. Throw in any amount of ParallaxLayer
s and it will take care of
moving them in accordance to their offsets and speeds.
Note: Currently, only @react-spring/web
is supported.
import { Parallax, ParallaxLayer } from '@react-spring/parallax'
const Example = () => {
const ref = useRef<Parallax>()
return (
<Parallax ref={ref} pages={3} scrolling={false} horizontal>
<ParallaxLayer offset={0} speed={0.5}>
<span
onClick={() => {
ref.current.scrollTo(1)
}}>
Layers can contain anything
</span>
</ParallaxLayer>
</Parallax>
)
}
Parallax
propspages: number
Determines the total space of the inner content where each page takes 100% of the visible container.
config?: SpringConfig
The spring behavior.
Defaults to config.slow
.
scrolling?: boolean
Allow content to be scrolled or not.
Defaults to true
.
`horizontal?: boolean
When true
, content scrolls from left to right.
Defaults to false
.
ParallaxLayer
propsfactor?: number
The page size (eg: 1 => 100%, 1.5 => 150%, etc)
Defaults to 1
.
offset?: number
The page offset (eg: 0 => top of 1st page, 1 => top of 2nd page, etc)
Defaults to 0
.
speed?: number
Shift the layer in accordance to its offset. Values can be positive or negative.
Defaults to 0
.
Paul Henschel
FAQs
```bash yarn add @react-spring/parallax ```
The npm package @react-spring/parallax receives a total of 1,458 weekly downloads. As such, @react-spring/parallax popularity was classified as popular.
We found that @react-spring/parallax demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.