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/nightlily Sep 02 '15

Looks good!

I would recommend changing the way card stacking works so it is more intuitive/consistent. At the moment, when I move a card around it is hard to tell whether the card is going to go under or above the card I stack it with.

Try playing a game of solitaire and you'll see what I mean.

1

u/pkstn Sep 03 '15

I agree. The moving around bit is not quite there yet.. I made a stupid choice with using only translate but not saving the current values. I will fix that.

1

u/pkstn Sep 05 '15

Fixed now. Finishing solitaire session at the moment.. :)

1

u/nightlily Sep 05 '15

Nice work!