Skip to content

Commit 095daa5

Browse files
committed
docs: update migration guide
1 parent 9b88d68 commit 095daa5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

documentation/docs/migration-guides/v2-migration-guide.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ change it to:
3434
const parallaxController = useParallaxController();
3535
```
3636

37+
### Prop changes for <ParallaxBanner\>
38+
39+
Layers now accept all [parallax props](/docs/usage/parallax-props) but you will need to update if you used the `layer.amount` prop.
40+
41+
1. `layer.amount` is no longer supported. Try `speed` or any new parallax props.
42+
2. `layer.props` is no longer supported. If you need to add props to the layer DOM element just define them in the `layer`.
43+
3. All `HTMLElement` props are now spread to the root element.
44+
3745
### Removed default class names
3846

39-
If you relied on either the `parallax-outer` or `parallax-inner` class names for styling you will need to refactor or set them manually.
47+
If you relied on either the `parallax-outer`, `parallax-inner`, `parallax-banner` or `parallax-banner-layer-[x]` class names for styling you will need to refactor or set them manually.

0 commit comments

Comments
 (0)