UNPKG

react-video-zoom

Version:

React component for magnifying glass circle on a video when hovering.

19 lines (18 loc) 686 B
/// <reference types="react" /> import "./index.css"; type ReactVideoZoomProps = { src: string; zoom: number; refs: ReactVideoZoomRefs; width?: number; loop?: boolean; muted?: boolean; }; type ReactVideoZoomRefs = { mainVideoRef: React.RefObject<HTMLVideoElement>; zoomVideoRef: React.RefObject<HTMLVideoElement>; }; export declare const playReactVideoZoom: ({ mainVideoRef, zoomVideoRef, }: ReactVideoZoomRefs) => void; export declare const pauseReactVideoZoom: ({ mainVideoRef, zoomVideoRef, }: ReactVideoZoomRefs) => void; export declare const ReactVideoZoom: ({ src, zoom, refs, width, loop, muted, }: ReactVideoZoomProps) => JSX.Element; export {};