Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/poppa/carousel-js

A simple Javascript carousel with no library dependency and lazy image loading
https://github.com/poppa/carousel-js

carousel javascript-carousel

Last synced: 12 days ago
JSON representation

A simple Javascript carousel with no library dependency and lazy image loading

Awesome Lists containing this project

README

        

# Carousel.JS

A simple Javascript carousel with no library dependencies, with lazy image loading and support for multiple image sources for the same item depending on device size.

This is not a fancy pancy full fledged carousel in any way, and that will never
be the purpose or goal either. If that's what you want then check out [Slick](http://kenwheeler.github.io/slick/) instead.

For real examples check out the [Carousel.JS](https://poppa.github.io/carousel-js/)
web page.

---

## Howto

The size of the carousel is determined by the size of its outer container. This means
that the carousel wrapper must have a given height in some way.

---

### Carousel wrapper

The outer most `div` element of the carousel that contain all carousel content

```html