1.0.6 • Published 1 year ago

react-scroll-video v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

React Scroll Video

This component allows scrolling in videos

How work

import React from "react";
import ScrollVideo from "react-scroll-video";

export default function Index() {
  return (
    <ScrollVideo
      // lower numbers = faster playback
      playback={5000}
      type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'
      src="https://www.apple.com/media/us/mac-pro/2013/16C1b6b5-1d91-4fef-891e-ff2fc1c1bb58/videos/macpro_main_desktop.mp4"
    />
  );
}

The parameter playback defines the speed of the scrolling of the video, the smaller the number, the faster the playback will be in scroll

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago