r/javascript • • Sep 02 '15

HTML5 Deck of Cards. 100% vanilla JS.

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

185 comments sorted by

View all comments

1

u/BeniBin Sep 03 '15

I would definitely read a blog post about the process of making this.

2

u/pkstn Sep 03 '15 edited Sep 03 '15

Actually the story goes back to (at least) 2006: http://pakastin.fi/cards_2006/ (made with Flash)

..then I made Angular.js version, which I can't find anywhere – but it was on Chrome Experiments back then.

And now I made vanilla JS version..

I got the original idea because vending machines with card games had premade animation back then which I found unrealistic. I though if it would be hard to animate better. Turned out it wasn't :)

3

u/pkstn Sep 03 '15 edited Sep 05 '15

I just found the Angular.js version as well: https://web.archive.org/web/20130823182335/http://pakastin.fi/cards

Close wayback machine's topbar to use the controls ;)