1.0.8 • Published 3 years ago

t-a-e-3d-carousel-reactjs v1.0.8

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

3D-Carousel-ReactJs

A resposive and customizable carousel for reactJs you can see the preview here

Get Started

npm

npm i t-a-e-3d-carousel-reactjs

information

ParameterTypeDefaultDescription
imageListListnullList of images url/path and title (optional)
autoplayBooleanfalseAutomatically change image slides
showArrowsBooleantrueSide arrows display status
intervalInteger2000If autoplay is enabled, the time period in milliseconds of image slides changing
classNameStringnullcarousel class name
imageClassNameStringnullcarousel images class name
onClickfunctionnullon click function
overlayClassNameStringnullcarousel image overlay class name
idStringnullcarousel id

parameter usage

<Carousel 
    imageList={List}
    autoplay={Boolean}
    showArrows={Boolean}
    interval={Integer}
    className={String}
    imageClassName={String}
    onClick={function}
    overlayClassName={String}
    id={String}
    >

usage

import Carousel from 't-a-e-3d-carousel-reactjs'

function App () {

    const Images = [
        {
            title: 'title 1',
            url: 'https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?ixlib=rb-1.2.1&ixid=MXwxMjA3fDB8MHxzZWFyY2h8MXx8Y2Fyc3xlbnwwfHwwfA%3D%3D&auto=format&fit=crop&w=500&q=60'
        },
        {
            title: 'title 2',
            url: 'https://images.unsplash.com/photo-1583121274602-3e2820c69888?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1050&q=80'
        },
        {
            title: '',
            url: 'https://images.unsplash.com/photo-1517672651691-24622a91b550?ixlib=rb-1.2.1&ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&auto=format&fit=crop&w=1189&q=80'
        },
        {
            url: 'https://images.unsplash.com/photo-1552519507-da3b142c6e3d?ixid=MXwxMjA3fDB8MHxzZWFyY2h8Mnx8Y2Fyc3xlbnwwfHwwfA%3D%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60'
        },
    ]


 return (
     <Carousel imageList={Images} />
 )   
}

export default App
1.0.2

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.1

3 years ago

1.0.0

3 years ago