@pavelcorp/infinite-react-slider

0.1.3 • Public • Published

Infinite React Slider - Pavelcorp

An infinite slider built with React

Example

import React from 'react';
import Slider from '@pavelcorp/infinite-react-slider';

const Component = () => {
  return (
    <Slider totalTime={2000} fps={60}>
      <div>Infinite</div>
      <div>React</div>
      <div>Slider</div>
    </Slider>
  )
}

Options

Name Type Default Description
totalTime Number 5000 Total time loop time in ms
fps Number 60 Animation frame rate
offset Number 0 Animation stops when slider if above viewport

Readme

Keywords

Package Sidebar

Install

npm i @pavelcorp/infinite-react-slider

Weekly Downloads

1

Version

0.1.3

License

MIT

Unpacked Size

18.6 kB

Total Files

5

Last publish

Collaborators

  • pavelcorp