Hero Video
A hero video component.
Installation
Props
| Prop | Type | Default | Description |
|---|---|---|---|
videoSrc | string | '' | The source URL of the video to be displayed. |
thumbnailSrc | string | '' | The source URL of the thumbnail image to be displayed before the video is played. |
thumbnailAlt | string | '' | The alt text for the thumbnail image. |
HeroVideoAlt | string | '' | The alt text for the hero video. |
animationStyle | string | 'from-top' | The animation style for the video appearance. Options include ‘from-top’, ‘from-bottom’, ‘from-left’, ‘from-right’. |
autoplay | boolean | false | Whether the video should autoplay when it becomes visible. |