vj-auto-carousel
v1.0.1
Published
Auto carousel vanilla js web component
Downloads
6
Maintainers
Readme
vj-auto-carousel
To generate carousel based on container element count.
Install
npm install vj-auto-carousel -SUsage
<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
