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.
shouldDisableScalingTranslations
1 parent bdb3e0d commit 2ffb866Copy full SHA for 2ffb866
src/components/ParallaxBanner/index.tsx
@@ -63,7 +63,10 @@ export const ParallaxBanner = (
63
const key = `layer-${i}`;
64
const imageStyle = getImageStyle(layer);
65
const expandedStyle = getExpandedStyle(expanded, layer);
66
- const parallax = useParallax<HTMLDivElement>(parallaxProps);
+ const parallax = useParallax<HTMLDivElement>({
67
+ shouldDisableScalingTranslations: true,
68
+ ...parallaxProps,
69
+ });
70
71
return (
72
<div
0 commit comments