Pure vanilla JS – no dependencies.
http://pakastin.github.io/deck-of-cards
- 0.0.3 big refactoring – code now easier to follow and in smaller pieces
- 0.0.2 made intro shorter & added "poker"
- 0.0.1 initial version
css/ - CSS source (stylus + nib) of the example
dist/ - deck.js & deck.min.js
example/ - http://pakastin.github.io/deck-of-cards
lib/ - JS (ES6) source of deck.js
views/ - HTML source of the example
npm install
npm start
(starts watching for changes..)
- Make z-index temporary by reordering DOM elements between actions
- Fix moving
- Enhance API, make more generic
- Make cards flippable
- Maybe use translate3d for even better performance, but make that temporary because of the smoothing issue