Skip to content

Commit dceb563

Browse files
committed
update parallax controller
1 parent 835b5b2 commit dceb563

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
}
7575
],
7676
"dependencies": {
77-
"parallax-controller": "0.1.21"
77+
"parallax-controller": "0.1.22"
7878
},
7979
"devDependencies": {
8080
"@babel/core": "^7.16.0",

stories/Parallax/7_ParallaxEasing.stories.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Element } from '../Element/Element';
44
import styles from './Parallax.module.scss';
55

66
const options = [
7+
'',
78
'ease',
89
'easeIn',
910
'easeOut',
@@ -52,7 +53,8 @@ const Template = (args) => {
5253
key={n}
5354
className={styles.smallLinear}
5455
easing={args.easing}
55-
translateX={[`${offA * n}${unit}`, `${offB * n}${unit}`]}
56+
rootMargin={{ top: 0, right: 0, bottom: 0, left: 0 }}
57+
translateY={[`${offA * n}${unit}`, `${offB * n}${unit}`]}
5658
>
5759
<Element name={n * -1} />
5860
</Parallax>

yarn.lock

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

11058-
parallax-controller@0.1.21:
11059-
version "0.1.21"
11060-
resolved "https://registry.yarnpkg.com/parallax-controller/-/parallax-controller-0.1.21.tgz#e8d4566ca2c01662621e895320d95a4134e48f9f"
11061-
integrity sha512-P9KhQe3xOJTo7SmeXtJO0J96pJPildNcLvcvvkswrFbIJYWB3qO8HT5V51C2/HitCHv5cdck01ot+AcI74hI4Q==
11058+
parallax-controller@0.1.22:
11059+
version "0.1.22"
11060+
resolved "https://registry.yarnpkg.com/parallax-controller/-/parallax-controller-0.1.22.tgz#775f2d2008dc01a7d2490a4ae4c4d1cb08b87365"
11061+
integrity sha512-wUYgVaT4A223Zr4HvXubVnnjK9tNQE9GVgOBB+QIPFEkorgDrhLCpb2sLqNpIcRGBO/YgQLEEKUBmznNVrDjTA==
1106211062
dependencies:
1106311063
bezier-easing "^2.1.0"
1106411064

0 commit comments

Comments
 (0)