Skip to content

Commit 2c16591

Browse files
committed
chore: bump controller and support shouldStartAnimationInitialInView
1 parent 8efdf9d commit 2c16591

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
}
8787
],
8888
"dependencies": {
89-
"parallax-controller": "^1.1.1"
89+
"parallax-controller": "^1.2.0"
9090
},
9191
"devDependencies": {
9292
"@babel/core": "^7.16.0",

src/helpers/getParallaxProps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function getParallaxProps(
2020
opacity: props.opacity,
2121
easing: props.easing,
2222
rootMargin: props.rootMargin,
23-
shouldStartAnimationInitialInView: props.shouldStartAnimationInitialInView,
23+
shouldAlwaysCompleteAnimation: props.shouldAlwaysCompleteAnimation,
2424
onProgressChange: props.onProgressChange,
2525
onChange: props.onChange,
2626
onEnter: props.onEnter,

stories/Parallax/1_ParallaxVertical.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export const StartAnimationAtInitialPosition = (args) => {
158158
`${args.startTranslateX}${unit}`,
159159
`${args.endTranslateX}${unit}`,
160160
]}
161-
shouldStartAnimationInitialInView
161+
shouldAlwaysCompleteAnimation
162162
>
163163
<Element name={i} />
164164
</Parallax>

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10989,10 +10989,10 @@ pako@~1.0.5:
1098910989
resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.11.tgz#6c9599d340d54dfd3946380252a35705a6b992bf"
1099010990
integrity sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==
1099110991

10992-
parallax-controller@^1.1.1:
10993-
version "1.1.1"
10994-
resolved "https://registry.yarnpkg.com/parallax-controller/-/parallax-controller-1.1.1.tgz#a83e9b1f74fd776e4ac548c7bc57296705dea2a4"
10995-
integrity sha512-wgC/af23fMD5LCK15A3VffXGiO3EXs+d1gs4pB3Hf4JZwZ6NXNC4dH6v4+ruCvxVA91C4znpyQ3OyiggEqG1HA==
10992+
parallax-controller@^1.2.0:
10993+
version "1.2.0"
10994+
resolved "https://registry.yarnpkg.com/parallax-controller/-/parallax-controller-1.2.0.tgz#c6358302f4111bb975fa94409595c309dccd99e8"
10995+
integrity sha512-o3tbh7tHw5pYKA+29aiQ2zsb5EtYIqED3oGoloLzezMvSTC9FAGwxpWzAyZ9A7529FTo2Q7xNgGtfvU1jF78+Q==
1099610996
dependencies:
1099710997
bezier-easing "^2.1.0"
1099810998

0 commit comments

Comments
 (0)