1.0.5 • Published 6 years ago

simple-responsive-carousel v1.0.5

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

RESPONSIVE CAROUSEL

Description

Simple responsive carousel to show some of your pics.

Installation

npm i simple-responsive-carousel

Usage

import carrousselPerso from 'simple-responsive-carousel';

Carousel with automatic scroll :

let carrousselPerso = new Carroussel({
    "name": "carroussel",
    "type": "automatic",
    "timer": 2000,
    "image": [
        "./img/img1.jpg",
        "./img/img2.jpg",
        "./img/img3.jpg",
        "./img/img4.jpg",
    ],
});
carrousselPerso.createCarroussel();

Carousel with manual scroll :

let carrousselPerso = new Carroussel({
    "name": "carroussel",
    "type": "manual",
    "image": [
        "./img/img1.jpg",
        "./img/img2.jpg",
        "./img/img3.jpg",
        "./img/img4.jpg",
    ],
});
carrousselPerso.createCarroussel();
NameValue(s)RequireTypeDesc
namecarouselDivIdyesstringThe name of the div ID where the carousel will be show
typeautomatic / manualyesstringThe type of the carousel. Automatic = automatic scroll. Manual = manual scroll
timer1500 / ""nonumberThe time, in millisecond, between each image
imagepathImg1, pathImg2yesstringThe array with all your relative path, absolute path or url of your images

If timer is not defined in automatic mode, timer will be set to 2000ms

Example

alt text

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago