Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@twreporter/react-flex-carousel

Package Overview
Dependencies
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twreporter/react-flex-carousel

A simple responsive Carousel powered by React and CSS Flexbox

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

A simple responsive Carousel powered by React and CSS Flexbox

You can also try nuka-carousel if needed more features.

Feature

  • Support swipe touch gesture
  • CSS style customization

Usage

<Carousel autoPlayInterval={4500} indicator={true} switcher={true}>
	<div></div>
	<div></div>
	<div></div>
</Carousel>

Props

  • className:

    class name on Carousel for CSS styling, default is slider

  • autoPlayInterval:

    set inteval number in ms to enable carousel autoplay

  • transitionDuration:

    CSS transition-duration, default is .8s

  • transitionTimingFunction:

    CSS transition-timing-function, default is ease-in-out

  • switcher:

    toggle to show the prev/next buttons, default is false

  • indicator:

    toggle to show the indicator dots, default is false

  • slideWillChange(newSlideIndex, currentSlideIndex):

    hook function before slide transition, return false could cancel transition.

  • slideDidChange(newSlideIndex):

    hook function after slide transition.

  • initialSlide:

    index of displayed starting slide, default is 1.

Then apply your style, take slider.css for reference.

Demo

Install nwb, then nwb react run example.js to see the demo.

License

MIT

FAQs

Package last updated on 21 Dec 2017

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc