reactautoplay
reactautoplay copied to clipboard
Add a video thumbnails to your project that play once you hover on them.
reactautoplay
Auto play video when you hover on the thumbnail.
Example: https://wrongakram.github.io/reactautoplay/
Install
npm install --save reactautoplay
Usage
import React from 'react'
import VideoThumbnail from "reactautoplay";
const App = () => {
return (
<VideoThumbnail
title='The Bachelor Premieres January 6'
preview='https://media1.giphy.com/media/llsb2HU9sKfK57pcnf/giphy480p.mp4'
badge='Premiere'
badgeBG='#EF798A'
message='1.2M Watching Now 🔥🔥'
muted={false}
width={350}
classname='customClassName' />
)
}
License
MIT © wrongakram