/vj-auto-carousel

Vanilla JavaScript Auto Carousel Web Component

Primary LanguageJavaScriptMIT LicenseMIT

vj-auto-carousel

To generate carousel based on container element count.

Install

 npm install vj-auto-carousel -S

Usage

<vj-auto-carousel length="5">
    <div slot="default">
        Hello this is default text.
    </div>
</vj-auto-carousel>
<style>
 :root {
    --default-carousel-bg-color: #fff;
    --selected-carousel-bg-color: #fdabe9;
 }
</style>

Attributes

length

Accepts elements count value residing within a container html element.

default slot

For custom message to be displayed.

License

MIT © Srinivasan K K