3.0.2 • Published 5 years ago

material-auto-rotating-carousel v3.0.2

Weekly downloads
2,490
License
MIT
Repository
github
Last release
5 years ago

Material AutoRotatingCarousel

Build Status Standard - JavaScript Style Guide

So you wrote a great app and deployed it and everything. But how do you introduce new users to your app? Well, the Material design guidelines have a solution: Displaying the top benefits in a beautiful auto-rotating carousel!

This project implements such a carousel for Material-UI. Visit the styleguide for an interactive demo.

Demo

Installation

npm i --save material-auto-rotating-carousel
npm i --save react-swipeable-views

Note: This is the version for Material-UI 1.0.0 or later. If you are using Material-UI 1.0.0-beta, you should update to the latest version. If you are still using Material-UI 0.x, you can use our legacy version.

AutoRotatingCarousel Properties

NameTypeDefaultDescription
autoplaybooltrueIf false, the auto play behavior is disabled.
ButtonPropsobjectProperties applied to the Button element.
containerStyleobjectOverride the inline-styles of the carousel container.
intervalinteger3000Delay between auto play transitions (in ms).
labelstringButton text. If not supplied, the button will be hidden.
landscapeboolIf true, slide will adjust content for wide mobile screens.
mobileboolfalseIf true, the screen width and height is filled.
ModalPropsobjectProperties applied to the Modal element.
openboolfalseControls whether the AutoRotatingCarousel is opened or not.
onChangefunctionFired when the index changed. Returns current index.
onClosefunctionFired when the gray background of the popup is pressed when it is open.
onStartfunctionFired when the user clicks the getting started button.

Slide Properties

NameTypeDefaultDescription
media*nodeObject to display in the upper half.
mediaBackgroundStyleobjectOverride the inline-styles of the media container.
styleobjectOverride the inline-styles of the slide.
subtitle*stringSubtitle for the slide.
title*stringTitle for the slide.

* required property

License

The files included in this repository are licensed under the MIT license.

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.1.0

6 years ago

1.8.1

6 years ago

2.0.0

6 years ago

1.8.0

6 years ago

2.0.0-beta.1

6 years ago

1.7.0

6 years ago

1.6.0

7 years ago

1.5.0

7 years ago

1.4.2

7 years ago

1.4.1

7 years ago

1.4.0

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.5.1

8 years ago

0.5.0

8 years ago

0.4.1

8 years ago

0.4.0

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago