0.0.2 • Published 5 months ago
react-infinite-slides v0.0.2
About
Make a list of elements to scroll infinitely
Installation
Install the package
npm install react-infinite-slides
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
Run an example app
npm run dev