0.0.2 • Published 5 months ago

react-infinite-slides v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

About

Make a list of elements to scroll infinitely

Installation

  1. Install the package

    npm install react-infinite-slides
  2. Import in a project

    import React from 'react';
    import 'react-infinite-slides/styles/infinite-slides.css';
    import { InfiniteSlides } from 'react-infinite-slides';
    
    const App = () => {
      return (
        <>
          <InfiniteSlides containerHeight='200px' itemWidth={0.5} speed={5000}>
            <div style={{ backgroundColor: 'red' }}>1</div>
            <div style={{ backgroundColor: 'green' }}>2</div>
            <div style={{ backgroundColor: 'blue' }}>3</div>
          </InfiniteSlides>
        </>
      )
    }

Development

  1. Run an example app

    npm run dev
0.0.2

5 months ago

0.0.1

5 months ago