JavaScript HTML CSS
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
templates
.gitignore
component.json
readme.md

readme.md

deprecated

carousel

image carousel demo

installation

for component:

$ component install ramitos/carousel

usage

var carousel = require('carousel');
var cats = carousel(document.getElementById('carousel-container'));

setInterval(function () {
  var height = Math.floor(Math.random() * 500) + 100;
  var width = Math.floor(Math.random() * 500) + 100;
  var url = "http://placekitten.com/g/" + width + "/" + height;
  carousel.add(url);
}, 1000)

api

void add(url: string)

add an image url to the carousel

number image()

retrieve the selected image position

void disable()

disable all carousel controls

void enable()

enable all carousel controls

license

MIT