The ScrollFeatureContainer
component accepts the following props:
Prop Name | Type | Required | Description |
---|---|---|---|
direction | "ltr" or "rtl" | Yes | Determines the layout direction of the scroll feature. "ltr" stands for left-to-right, and "rtl" stands for right-to-left. |
imageSrc | string | Yes | The source URL of the image to be displayed within the scroll feature. |
children | React.ReactNode | Yes | The content to be rendered inside the scroll feature container. |
topPosition | string (optional) | No | Specifies the top position for the sticky content. Defaults to "53%" if not provided. |
Default Values
topPosition
: If not specified, defaults to"50%"
.