Socket
Socket
Sign inDemoInstall

react-hover-video-player

Package Overview
Dependencies
6
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-hover-video-player

React component which manages playing a video when the user hovers over it and pausing when they stop.


Version published
Weekly downloads
2.2K
decreased by-30.7%
Maintainers
1
Install size
34.5 kB
Created
Weekly downloads
 

Readme

Source

React Hover Video Player

npm version minzipped size code coverage build status

A React component that makes it dead easy to set up a video that plays on hover.

Read the docs at react-hover-video-player.dev 📖

Features 💡

  • Robust support for both mouse and touchscreen interactions
  • Easily add custom thumbnails and loading states
  • Lightning fast
  • No dependencies
  • Simple and easy to customize

Quick Start 🏃

Installation

npm install react-hover-video-player

Basic Setup

import HoverVideoPlayer from 'react-hover-video-player';

function MyComponent () {
  return (
    <HoverVideoPlayer
      videoSrc="path-to/your-video.mp4"
      pausedOverlay={<img src="thumbnail-image.jpg" alt="" />}
      loadingOverlay={<div className="loading-spinner-overlay" />}
    />
  );
}

Keywords

FAQs

Last updated on 07 May 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc