react-frame-sequencer
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

React Frame Sequencer

Frames sequencer player for changing frames when user scrolls

Usage

import { FrameSequencer } from "react-frame-sequencer";

const App = () => {
    return (
        <FrameSequencer
            framesCount={100}
            imagesPath='frames'
            imagesType='jpg'
            imagesPrefix='thumb'
            speed={20}
        >
            <h1>Hello World!</h1>
        </FrameSequencer>
    )
}

Props

framesCount   - number of frames
imagesPath    - path to images folder
imagesType    - type of images
imagesPrefix  - (optional) - prefix in the images names
speed         - (optional) - speed of the frames updates (default 10)

Important!

In this version 0.1.0
All images names must start with a 0001 
Example: thumb0001.jpg
And no void frames are allowed, if you want to use 300 frames, first frame must be named 0001 and last 0301

Package Sidebar

Install

npm i react-frame-sequencer

Weekly Downloads

2

Version

0.1.1

License

MIT

Unpacked Size

34.4 kB

Total Files

39

Last publish

Collaborators

  • fondunn