react-carousel-cs
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

Getting started

Compatibility

Your project needs to use React 16.8 or later.

Installation

Add react-carousel to your project by executing npm install react-carousel-cs or yarn add react-carousel-cs.

Usage

Here's an example of basic usage:

import Carousel from 'react-carousel-cs';
import "react-carousel-cs/dist/carousel.css";

function MyApp() {
   const images = [
    "assets/carousel/keno.jpeg",
    "assets/carousel/Roulette.jpg",
    "assets/carousel/Boom City.jpg",
    "assets/carousel/Lucky6.jpeg",
    "assets/carousel/Roulette.jpg",
    "assets/carousel/7Bet.jpeg",
    "assets/carousel/Sweet Bonanza CandyLand.jpeg",
    "assets/carousel/Game shows.jpg",
    "assets/carousel/Boom City.jpg",
    "assets/carousel/7Bet.jpeg",
    "assets/carousel/Vegas Ball Bonanza.jpg",
    "assets/carousel/Boom City.jpg"
  ];

  const customZoomAnimation = {
    initial: { scale: 0.8, opacity: 0 },
    animate: { scale: 1, opacity: 1 },
    exit: { scale: 0.8, opacity: 0 },
  };

  return (
    <div>
         <Carousel images={images} speed={15} pauseOnHover={true} showSlideInfo={true} showSlideChangeButton={true} thumbNails={true} progressBar={true} customAnimation={customZoomAnimation} /> 
    </div>
  );
}

License

The MIT License.

Thank you

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.50latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i react-carousel-cs

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

16.6 kB

Total Files

5

Last publish

Collaborators

  • ayush123123