You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Optimizations to Reduce Jank](#optimizations-to-reduce-jank)
45
-
*[PSA](#psa)
45
+
*[PSA](#psa)
46
46
47
47
## Usage
48
48
@@ -147,13 +147,15 @@ The following are all props that can be passed to the `<ParallaxBanner>` compone
147
147
148
148
### Banner Layers Prop
149
149
150
-
The `layers` prop takes an array of objects that will represent each image of the parallax banner. The following properties describe a layer object:
150
+
The `layers` prop takes an array of objects that will represent each image (or custom children) of the parallax banner. The following properties describe a layer object:
|**amount**|`Number`| A value from `0 – 1` that represents the vertical offset to be applied to the current layer, `0.1` would equal a `10%` offset on the top and bottom. |
155
-
|**image**|`String`| Image source that will be applied as a CSS background image on the layer. |
156
-
|**slowerScrollRate**|`Number`| Indicates whether the layer should move faster or slower than the default rate of scroll. |
|**amount**|`Number`|| A value from `0 – 1` that represents the vertical offset to be applied to the current layer, `0.1` would equal a `10%` offset on the top and bottom. |
155
+
|**children**|`Element`|| Custom layer children provided as a React element, for example `<Video />`|
156
+
|**expanded**|`Boolean`|`true`| Indicate if the layer should be expanded with negative top/bottom margins so the edges will never be visible. |
157
+
|**image**|`String`|| Image source that will be applied as a CSS background image on the layer. |
158
+
|**slowerScrollRate**|`Number`|| Indicates whether the layer should move faster or slower than the default rate of scroll. |
0 commit comments