Skip to content

Vanilla js web component carousel looping large lists of items including lazy image loading

License

Notifications You must be signed in to change notification settings

marksmits/item-carousel

Repository files navigation

<item-carousel>

Published on webcomponents.org

The <item-carousel> is looping a large item lists horizontal. Optionally images can be lazy image loaded using the <img-lazy> element.

Both elements are plain vanilla js.

<item-carousel speed="30">
  <div class="item"><img-lazy srcUrl="images/x.svg"></img-lazy><span>name x</span></div>
  <div class="item wide"><img-lazy srcUrl="images/x.svg"></img-lazy><span>name x</span></div>
  <div class="item"><img-lazy srcUrl="images/x.svg"></img-lazy><span>name x</span></div>
  <div class="item"><img-lazy srcUrl="images/x.svg"></img-lazy><span>name x</span></div>
  ...
</item-carousel>

Viewing Documentation and demo

Serve the carousel element locally.

$ npm install
$ polymer serve

Zagenzagen.nl

About

Vanilla js web component carousel looping large lists of items including lazy image loading

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages