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

3

u/3Fyr Sep 02 '15

Whatever I do, it always increase z-index, it should be increase/decrease I guess?

Also, some sort of animation could help.

1

u/pkstn Sep 02 '15

I agree, moving is not quite there yet.. Use the buttons on top ;)

3

u/theQuandary Sep 02 '15

I'd also add that the current card should default to the highest z-index (this is how they work in real life and is expected behavior).

1

u/pkstn Sep 06 '15

Fixed!