Rerousel - the simplest and lightest infinite carousel package made for React.
Simple: Need a carousel component for your website or app? Tired of looking for something decent on Codepen? With Rerousel you can set it up in the blink of an eye!
Lightweight: Rerousel is the lightest infinite React carousel available for download from NPM because it uses only a couple of vital packages. You don’t have to worry about thousands of dependencies flooding your application!
Versatile: Whether you want to show off your products, brag with customer reviews, or even set up a collage of holiday pictures - Rerousel is there for you.
It supports all types of JSX elements, so you don't have to worry about compatibility. It doesn't have to be an infinite carousel - you can simply set up a custom stop point using the stop prop.
Create a ref pointing to your outermost item inside of the Rerousel and include it in Rerousel as an itemRef prop.
You can also determine the interval using the interval prop in milliseconds, but you don't have to - the default value is 3 seconds.
Props
Prop
Type
Default
Required?
Description
itemRef
RefObject
undefined
Yes
Reference to the outermost item of the carousel - used to retrieve information about the item's total width
interval
Number
3000
No
Interval length in milliseconds
stop
Boolean
false
No
Should the carousel stop?
Contribute
Fork this repo
Create your feature branch: git checkout -b feature-name
Commit your changes: git commit -am 'Add some feature'
Push to the branch: git push origin my-new-feature
Submit a pull request
Issues
If you encounter any issues when using the Rerousel package, please add a new issue - we will get to it as fast as it's possible.