1.2.2 • Published 4 years ago

ovidlay v1.2.2

Weekly downloads
80
License
ISC
Repository
github
Last release
4 years ago

ovidlay

Fully customizable YouTube video overlay for React

Usage

To use ovidlay all you need is the videoId of the YouTube video you want to add to your page: image

import Ovidlay from "ovidlay"

...

<Ovidlay 
  videoId="g1iC1h8Nt68" 
  containerClassName="player"
  playButtonColor="#162363"
  sliderPrimaryColor="#162363"
  sliderSecondaryColor="#ffffff"
>
  <div style={{position: 'absolute', top: "25%", width: "100%"}}>
    <h1 style={{textAlign: "center"}}>
      Sample Text
    </h1>
  </div>
</Ovidlay>

image

Props

NameTypeRequiredDescription
videoIdstringYYouTube video id to be used by the video player
containerClassNamestringNClass Name to be applied to the component (components default styling uses height & width 100%)
playButtonColorstringNBackground color for the play button, defaults to black (#000000)
sliderPrimaryColorstringNColor of the progress and volume sliders in the overlay controls, defaults to red (#ff0000)
sliderSecondaryColorstringNColor of progress and volume slider backgrounds, defaults to white (#ffffff) NOTE: 50% opacity is applied to this color

Contribute

Issues, Pull Requests, and feedback are all welcome!

Built and maintained by Candor

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.1

4 years ago