Socket
Book a DemoInstallSign in
Socket

react-image-carousel

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-image-carousel

simple react image carousel

latest
Source
npmnpm
Version
2.0.18
Version published
Maintainers
1
Created
Source

npm version Download Count

demo gif

React image carousel is a React component for building image galleries and carousels

  • Thumbnail navigation configurable
  • Fade In/Fade Out
  • Autoplay configurable
  • Loop configurable
  • Prev/Next image

Live Demo

Live demo: https://grace951.github.io/react-image-carousel/

Example

Need more example? See examples

import { render } from 'react-dom';
import React from 'react';
import Carousel from 'react-image-carousel';

let images = [
	'/img/landing1.jpg',
	'/img/landing2.jpg',
	'/img/landing3.jpg',
	'/img/landing4.jpg',
	'/img/landing5.jpg'
];

render(<div className="my-carousel">
			<Carousel images={images} 
						thumb={true}
						loop={true}
						autoplay={3000}/>
		</div>, document.getElementById("app"))
		

Props

  • thumb: Boolean, default true
    • thumbnail navigation
  • loop: Boolean, default true
    • infinite sliding
  • image: Array, default []
    • source of images to show
  • autoplay: Number, default 3000
    • add this prop to enable autoplay, the value is set to slide interval

Notes

  • Feel free to contribute and or provide feedback!

Build the example locally

git clone https://github.com/Grace951/react-image-carousel.git
cd example/example2
npm install
npm start

Then open localhost:3000 in a browser.

License

MIT

Keywords

react

FAQs

Package last updated on 27 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.