Skip to content

Commit 27409ac

Browse files
authored
fix(parallax): add position properties to layer (#1530)
1 parent 9fed8ad commit 27409ac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/parallax/src/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,10 @@ export const ParallaxLayer = React.memo(
164164
ref={layerRef}
165165
style={{
166166
position: 'absolute',
167-
[layer.horizontal ? 'left' : 'top']: 0,
167+
top: 0,
168+
bottom: 0,
169+
left: 0,
170+
right: 0,
168171
backgroundSize: 'auto',
169172
backgroundRepeat: 'no-repeat',
170173
willChange: 'transform',

0 commit comments

Comments
 (0)