1.0.2 • Published 4 years ago

react-vimeo-placeholder v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

react-vimeo-placeholder

React custom vimeo player placeholder

Embed Vimeo player with a custom placeholder image and play button

Example

react-vimeo-placeholder-2

import Vimeo from 'react-vimeo-placeholder';
import 'react-vimeo-placeholder/dist/style.css';

const MyComponent = () => {
  return <Vimeo
    id="87008050"
    hoverAnimation="backgroundScale"
    highlightColor="rgba(50,100,150,0.5)"
    borderColor="rgba(150,200,250,0.8)"
    playButtonShape="circle"
  />;
}

Options

NameTypeDefaultDescription
borderColorstring#fffPlay button border color
hoverAnimationstring-Hover animation - accepts arrowScale, backgroundScale or fade
highlightColorstringrgba(0,0,0,.6)Highlight color
minibooleanfalseSmall play button
playButtonArrowstringlightPlay button color - accepts dark or light
playButtonShapestringsquarePlay button shape - accepts circle, square or rounded-square
showTitlebooleantrueShow or hide video title

Browser Support

  • Chrome
  • Firefox
  • Internet Explorer 10 +
  • Opera