You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,10 +15,18 @@ Some links demonstrating possible effects created with this lib:
15
15
16
16
## Install
17
17
18
+
With npm
19
+
18
20
```
19
21
npm i react-scroll-parallax --save
20
22
```
21
23
24
+
or yarn
25
+
26
+
```
27
+
yarn add react-scroll-parallax
28
+
```
29
+
22
30
## Usage
23
31
24
32
The `<ParallaxProvider />` should wrap the component tree that contains all `<Parallax />` components. This should be a top level component like `<AppContainer />`. The `<ParallaxProvider />` will then provide necessary context to the [`parallaxController`](#parallax-controller-context) for all `<Parallax />` elements. For example:
0 commit comments