Youtube video as background for HTML elements
youtube-bg-react
Youtube video as background for HTML elements
Install
npm install --save youtube-bg-react
Usage
import React, { Component } from 'react'
import YoutubeBg from 'youtube-bg-react'
import 'youtube-bg-react/dist/index.css'
class Example extends Component {
render() {
return <YoutubeBg videoId="<Youtube Video ID>"> { <Content> } </YoutubeBg>
}
}
License
MIT © Debdut