Skip to content

nashcc/deck-of-cards

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML5 Deck of Cards

Gitter

Pure vanilla JS – no dependencies.

http://pakastin.github.io/deck-of-cards

Latest changes

  • 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

Where's what?

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

Build instructions

npm install
npm start

(starts watching for changes..)

Note to self: todo

  • 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

Packages

No packages published

Languages

  • JavaScript 90.1%
  • HTML 5.3%
  • CSS 4.6%