youtube-bg-react

Youtube video as background for HTML elements

NPM JavaScript Style Guide

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

GitHub

View Github