🌜
🌞
deck-of-cards

deck-of-cards

v0.1.8

HTML5 Deck of Cards

npm install deck-of-cards

README

HTML5 Deck of Cards

Gitter

Pure vanilla JS (+ CSS3) – no dependencies, by Juha Lindstedt & contributors.

https://deck-of-cards.js.org

Install from Google Chrome Web Store

Frontside card graphics are slightly modified from Chris Aguilar's awesome Vector Playing Card Graphics Set.

Also check out my RE:DOM and HTML5 Node Garden projects!

License

LGPL if you use Chris Aguilar's vector playing cards. Otherwise MIT.

Download

Installation from npm

npm install deck-of-cards

Build instructions

npm install
npm start

(starts watching for changes..)

Latest changes

  • 0.1.4 card.animateTo() -method added –> simplier modules! Simple example of usage
  • 0.1.3 JS animations (instead of CSS transitions)
  • 0.1.2 Backside graphics + setRankSuit (+ card.value -> card.rank!)
  • 0.1.1 Better organized modules + Chrome app
  • 0.1.0 Realistic face graphics, notice change of license for now..
  • 0.0.4 winning mode, simpler shuffling, CSS box-shadow change
  • 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

chrome/ - Chrome Web Store app source

dist/ - deck.js & deck.min.js

example/ - https://deck-of-cards.js.org

lib/ - JS (ES6) source of dist/deck.js - deck.js is also the main file

views/ - HTML source of the example

Note to self: todo

  • Make z-index temporary by reordering DOM elements between actions
  • Enhance API, make more flexible

Release Notes

0.1.4
By Juha Lindstedt • Published on September 23, 2015

card.animateTo() -method added -> simplier modules!

0.1.3
By Juha Lindstedt • Published on September 23, 2015

CSS transitions are now gone: say hello to JS animations! Also couple of bug fixes..

General

License
MIT
Typescript Types
None found
Tree-shakeable
Yes

Popularity

GitHub Stargazers
2,741
Community Interest
3,226
Number of Forks
446

Maintenance

Commits
10/219/2201
Last Commit
Mar 26, 2020
Open Issues
7
Closed Issues
38
Open Pull Requests
1
Closed Pull Requests
5

Versions

Versions Released
10/219/2201
Latest Version Released
Apr 24, 2017
Current Tags
latest0.1.8

Dependencies

Dependencies (0)
Dev Dependencies (7)

Contributors

pakastin
pakastin
Commits: 193
jansegre
jansegre
Commits: 5
vinceau
vinceau
Commits: 2
joequery
joequery
Commits: 2
monkeywithacupcake
monkeywithacupcake
Commits: 2
alcalyn
alcalyn
Commits: 2
Settsu
Settsu
Commits: 1
ceautery
ceautery
Commits: 1
hubdotcom
hubdotcom
Commits: 1
mizzao
mizzao
Commits: 1
mjkaufer
mjkaufer
Commits: 1
GregFrench
GregFrench
Commits: 1