Skip to content

Commit 3b7cb38

Browse files
committed
docs: bump version and use shouldAlwaysCompleteAnimation in demos
1 parent 54dd3e9 commit 3b7cb38

File tree

5 files changed

+14
-12
lines changed

5 files changed

+14
-12
lines changed

documentation/docs/intro.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ yarn add react-scroll-parallax@beta
3535
## Getting Started
3636

3737
- [Usage](/docs/usage/)
38+
- [How it works](/docs/examples/how-it-works)
3839

3940
### Docs: Hooks
4041

documentation/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"prism-react-renderer": "^1.2.1",
2323
"react": "^17.0.1",
2424
"react-dom": "^17.0.1",
25-
"react-scroll-parallax": "^3.0.0-beta.8"
25+
"react-scroll-parallax": "^3.0.0-beta.9"
2626
},
2727
"browserslist": {
2828
"production": [

documentation/src/components/beyond-css-effects/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const BeyondCSSEffects = () => {
1111
rotate={[-180, 0]}
1212
easing="easeInQuad"
1313
className="rounded-lg bg-gray-600 bg-opacity-50"
14+
shouldAlwaysCompleteAnimation
1415
>
1516
<div className="border-2 border-blue-200 border-solid flex items-center justify-center bg-blue-400 h-48 w-48 rounded-lg">
1617
<p className="text-center font-bold uppercase">Heyo!</p>

documentation/src/components/easing-demo/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import { BgContainer } from '../bg-container';
66
export const EasingDemo = (props: { easing: EasingParam }) => {
77
const parallaxLinear = useParallax<HTMLDivElement>({
88
translateX: [0, 100],
9-
shouldStartAnimationInitialInView: true,
9+
shouldAlwaysCompleteAnimation: true,
1010
});
1111

1212
const parallaxEased = useParallax<HTMLDivElement>({
1313
translateX: [0, 100],
14-
shouldStartAnimationInitialInView: true,
14+
shouldAlwaysCompleteAnimation: true,
1515
easing: props.easing,
1616
});
1717

documentation/yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5402,10 +5402,10 @@ package-json@^6.3.0:
54025402
registry-url "^5.0.0"
54035403
semver "^6.2.0"
54045404

5405-
parallax-controller@^1.1.1:
5406-
version "1.1.1"
5407-
resolved "https://registry.yarnpkg.com/parallax-controller/-/parallax-controller-1.1.1.tgz#a83e9b1f74fd776e4ac548c7bc57296705dea2a4"
5408-
integrity sha512-wgC/af23fMD5LCK15A3VffXGiO3EXs+d1gs4pB3Hf4JZwZ6NXNC4dH6v4+ruCvxVA91C4znpyQ3OyiggEqG1HA==
5405+
parallax-controller@^1.2.0:
5406+
version "1.2.0"
5407+
resolved "https://registry.yarnpkg.com/parallax-controller/-/parallax-controller-1.2.0.tgz#c6358302f4111bb975fa94409595c309dccd99e8"
5408+
integrity sha512-o3tbh7tHw5pYKA+29aiQ2zsb5EtYIqED3oGoloLzezMvSTC9FAGwxpWzAyZ9A7529FTo2Q7xNgGtfvU1jF78+Q==
54095409
dependencies:
54105410
bezier-easing "^2.1.0"
54115411

@@ -6179,12 +6179,12 @@ react-router@5.2.1, react-router@^5.2.0:
61796179
tiny-invariant "^1.0.2"
61806180
tiny-warning "^1.0.0"
61816181

6182-
react-scroll-parallax@^3.0.0-beta.8:
6183-
version "3.0.0-beta.8"
6184-
resolved "https://registry.yarnpkg.com/react-scroll-parallax/-/react-scroll-parallax-3.0.0-beta.8.tgz#9c4dbf5d103c2a22bc70a3db7934ee790d23dbde"
6185-
integrity sha512-9wNt39qjo86bpAWKfI7+FiFQPD9gJJooQzBRvEltCL5RPXOAHdllhjX3zdAzrPD5bCfsKVvPO2VD1REfCNkN7Q==
6182+
react-scroll-parallax@^3.0.0-beta.9:
6183+
version "3.0.0-beta.9"
6184+
resolved "https://registry.yarnpkg.com/react-scroll-parallax/-/react-scroll-parallax-3.0.0-beta.9.tgz#324b59a2876aa28dc852a832efe42410cddddecf"
6185+
integrity sha512-n8KpI4myAu1hUC/lypt+3wDZTqMM868KNcbjKSMLWpgVdJoZhgqORcO95N+cGKquBU7tjSUk2jMub/pBYEC3FQ==
61866186
dependencies:
6187-
parallax-controller "^1.1.1"
6187+
parallax-controller "^1.2.0"
61886188

61896189
react-side-effect@^2.1.0:
61906190
version "2.1.1"

0 commit comments

Comments
 (0)