Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/code0wl/canvas-slider

A drag slide purely based in canvas
https://github.com/code0wl/canvas-slider

Last synced: 19 days ago
JSON representation

A drag slide purely based in canvas

Awesome Lists containing this project

README

        

#Canvas slider [![Build Status](https://travis-ci.org/code0wl/canvas-slider.svg)](https://travis-ci.org/code0wl/canvas-slider)

A free canvas slider to be used with remote or local data.
Use when speed is absolutely a necessity! Also works on mobile.

###Features
- image fetch api
- image to canvas convertion
- documented code coverage
- modern buildstreet
- Image aspect ratio resize
- horizontal scroll
- vertical scroll
- map events to canvas coordinates
- linting
- Mobile (optimised for touch support)
- !deadzone scrolling
- no libs, clean ES2015 (w/babel)

###Feature pipeline
- import image by dragging and dropping in the strip
- select image to modify
- add effects to image
- crop image
- rotate image
- force scroll with physics and momentum

###usage
Checkout the project from this github repo

cd canvas-slider
npm i
gulp serve

###api
document.addEventListener('DOMContentLoaded', function() {
var dcDogs = new CanvasSlider({
element: '.js-slider',
direction: 'horizontal',
data: '/data/dcdogs.json',
dimensions: {
width: '600',
height: '400'
}
});
});



document.addEventListener('DOMContentLoaded', function() {
var dcDogs = new CanvasSlider({
element: '.js-slider',
direction: 'vertical',
data: '/data/dcdogs.json',
dimensions: {
width: '600',
height: '400'
}
});
});


###additional
Enter the following for a list of build tasks

gulp help