1.0.19 • Published 3 years ago

react-pretty-carousel v1.0.19

Weekly downloads
34
License
ISC
Repository
github
Last release
3 years ago

React-Pretty-Carousel

Easily add beautiful carousels to your website in no time!

React Pretty Carousel

Check out the Demo on the docs website!

Installation

In order to install react-pretty-carousel, run this command in your terminal.

npm i react-pretty-carousel --save

Or

yarn add react-pretty-carousel

Usage

Usage

Props

PropDataTypeDescription
itemsintegerNumber of items to display at once
modestringStyle of the carousel, can be either normal or gallery
showControlsbooleanShow the dots and navigation buttons if true, and otherwise if false

External Functions and Values

You can summon and move/navigate through the carousel by importing and using the following functions:

import {
  CarouselWrapper,
  prev,
  next,
  moveTo,
  switchTo,
  presentIndex,
} from "react-pretty-carousel";
FunctionDescriptionParameters
prev()Move to the previous slidenone
next()Move to the next slidenone
moveTo(5)Move to a certain index/object with smooth animationinteger
switchTo(5)Abruptly move to a certain index/objectinteger
presentIndexGet the present index of the carousel object being displayednone
1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago