Skip to content

kksrini89/vj-auto-carousel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Vanilla JavaScript Auto Carousel Web Component

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published