New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

zarousel

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zarousel

A react component of carousel.

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Zarousel

NPM

Build Status

A react component of carousel

Installation

npm i zarousel --save

Usage

import React from 'react';
import Zarousel from 'zarousel';
import 'zarousel/lib/zarousel.css';

class App extends React.Component {
  constructor(props) {
    super(props);
  }

  render() {
    return (
      <Zarousel
        className="container"
        autoPlay
        showArrow
      >
        <div className="slide">1</div>
        <div className="slide">2</div>
        <div className="slide">3</div>
        <div className="slide">4</div>
        <div className="slide">5</div>
        <div className="slide">6</div>
      </Zarousel>
    );
  }
}

Props

PropertyTypeDefaultDescription
autoPlaybooleantruewhether autoplay carousel
autoPlayIntervalnumber3000(ms)interval time of autoplay
transitionDurationnumber300(ms)transition duration of carousel
showArrowbooleanfalsewhether show icon of arrow to control play of carousel
sizeArrowobject{width: 30, height: 30}size of icon of arrow
colorDotstring'#333'color of active dot
sizeDotobject{width: 10, height: 10}size of dot
swipeTofunction(index)--control zarousel by index of slide that is 0 based
goPrevfunction--swipe to previous slide of zarousel
goNextfunction--swipe to next slide of zarousel
onChangefunction(previousIndex, currentIndex)noopcallback when zarousel is changed

Keywords

FAQs

Package last updated on 09 Apr 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

  • 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