@@ -10,10 +10,10 @@ export const WithYOffsets = (args) => {
1010 const b = args . y2 . split ( ',' ) ;
1111 return (
1212 < Container scrollAxis = "horizontal" className = { styles . elementsHorizontal } >
13- < Parallax y = { a } className = { styles . parallax } >
13+ < Parallax translateY = { a } className = { styles . parallax } >
1414 < Element name = "1" />
1515 </ Parallax >
16- < Parallax y = { b } className = { styles . parallax } >
16+ < Parallax translateY = { b } className = { styles . parallax } >
1717 < Element name = "2" />
1818 </ Parallax >
1919 </ Container >
@@ -52,10 +52,10 @@ export const WithXAndYOffsets = (args) => {
5252 const yb = args . y2 . split ( ',' ) ;
5353 return (
5454 < Container scrollAxis = "horizontal" className = { styles . elementsHorizontal } >
55- < Parallax translateX = { xa } y = { ya } className = { styles . parallax } >
55+ < Parallax translateX = { xa } translateY = { ya } className = { styles . parallax } >
5656 < Element name = "1" />
5757 </ Parallax >
58- < Parallax translateX = { xb } y = { yb } className = { styles . parallax } >
58+ < Parallax translateX = { xb } translateY = { yb } className = { styles . parallax } >
5959 < Element name = "2" />
6060 </ Parallax >
6161 </ Container >
@@ -88,7 +88,7 @@ export const WithVaryingYOffsets = (args) => {
8888 < Parallax
8989 key = { n }
9090 className = { styles . smallLinear }
91- y = { [ `${ offA * n } ${ unit } ` , `${ offB * n } ${ unit } ` ] }
91+ translateY = { [ `${ offA * n } ${ unit } ` , `${ offB * n } ${ unit } ` ] }
9292 >
9393 < Element name = { n * - 1 } />
9494 </ Parallax >
@@ -159,7 +159,7 @@ export const InsideADiv = () => {
159159 < Parallax
160160 key = { n }
161161 className = { styles . smallLinear }
162- y = { [ `${ offA * n } ${ unit } ` , `${ offB * n } ${ unit } ` ] }
162+ translateY = { [ `${ offA * n } ${ unit } ` , `${ offB * n } ${ unit } ` ] }
163163 >
164164 < Element name = { n * - 1 } />
165165 </ Parallax >
0 commit comments