We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adf214d commit 6655545Copy full SHA for 6655545
src/components/Media/Image/Image.tsx
@@ -73,8 +73,8 @@ const Image = (props: ImageAllProps) => {
73
74
if (parallax) {
75
const parallaxLevel = 2;
76
- springSetScrollY({springScrollY: height && scrollY > height ? height : scrollY});
77
- parallaxInterpolate = springScrollY.interpolate(
+ springSetScrollY.start({springScrollY: height && scrollY > height ? height : scrollY});
+ parallaxInterpolate = springScrollY.to(
78
(value) => `translateY(-${Number(value) / parallaxLevel}px)`,
79
);
80
}
0 commit comments