RT
Rob T

Horizontal Poster - Copy this React, Tailwind Component to your project

after 10 seconds a youtube player appears on z index upper and play a video automatically, when video finished, disappear. use this: <YouTube videoId="EIVMVIr3q3Y" opts={{ width: '100%', height: '100%', playerVars: { autoplay: 1, controls: 2, disablekb: 1, fs: 0, modestbranding: 0, rel: 0, iv_load_policy: 3, // Disables annotations showinfo: 0, // Deprecated, but can try enablejsapi: 1 // Allows control via JavaScript }, }} onEnd={onVideoEnd} className="w-full aspect-video" />

Prompt
Component Preview

About

HorizontalPoster - A sleek, responsive component with text positioned at the bottom left, perfect for showcasing images. Built with Re. Download free code!

Share

Last updated 1 month ago