@@ -10,10 +10,10 @@ export const WithYOffsets = (args) => {
10
10
const b = args . y2 . split ( ',' ) ;
11
11
return (
12
12
< Container scrollAxis = "horizontal" className = { styles . elementsHorizontal } >
13
- < Parallax y = { a } className = { styles . parallax } >
13
+ < Parallax translateY = { a } className = { styles . parallax } >
14
14
< Element name = "1" />
15
15
</ Parallax >
16
- < Parallax y = { b } className = { styles . parallax } >
16
+ < Parallax translateY = { b } className = { styles . parallax } >
17
17
< Element name = "2" />
18
18
</ Parallax >
19
19
</ Container >
@@ -52,10 +52,10 @@ export const WithXAndYOffsets = (args) => {
52
52
const yb = args . y2 . split ( ',' ) ;
53
53
return (
54
54
< Container scrollAxis = "horizontal" className = { styles . elementsHorizontal } >
55
- < Parallax translateX = { xa } y = { ya } className = { styles . parallax } >
55
+ < Parallax translateX = { xa } translateY = { ya } className = { styles . parallax } >
56
56
< Element name = "1" />
57
57
</ Parallax >
58
- < Parallax translateX = { xb } y = { yb } className = { styles . parallax } >
58
+ < Parallax translateX = { xb } translateY = { yb } className = { styles . parallax } >
59
59
< Element name = "2" />
60
60
</ Parallax >
61
61
</ Container >
@@ -88,7 +88,7 @@ export const WithVaryingYOffsets = (args) => {
88
88
< Parallax
89
89
key = { n }
90
90
className = { styles . smallLinear }
91
- y = { [ `${ offA * n } ${ unit } ` , `${ offB * n } ${ unit } ` ] }
91
+ translateY = { [ `${ offA * n } ${ unit } ` , `${ offB * n } ${ unit } ` ] }
92
92
>
93
93
< Element name = { n * - 1 } />
94
94
</ Parallax >
@@ -159,7 +159,7 @@ export const InsideADiv = () => {
159
159
< Parallax
160
160
key = { n }
161
161
className = { styles . smallLinear }
162
- y = { [ `${ offA * n } ${ unit } ` , `${ offB * n } ${ unit } ` ] }
162
+ translateY = { [ `${ offA * n } ${ unit } ` , `${ offB * n } ${ unit } ` ] }
163
163
>
164
164
< Element name = { n * - 1 } />
165
165
</ Parallax >
0 commit comments