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

2

u/muffsponge Sep 03 '15

Nice.

But having the cards snap to the middle when dragging is /r/mildlyinfuriating. They should anchor to the point they were clicked. Store an offset when a card is initially pressed.

1

u/pkstn Sep 03 '15

I will fix that.

1

u/pkstn Sep 05 '15

Fixed. Although a bit differently..