In honor of the release of the Whispers of the Old Gods expansion for Hearthstone, I wanted to share this proof of concept. The card drag feature in the game has always been one of my favorite things to play with. It feels like the card is reacting to air resistance as you drag it around.
Don't read in to the code too much, as it could be optimized quite a bit. This pen was more just to explore the concept of the 3D click and drag. Let me know if you have any questions, and please fork if you'd like to play around or enhance it!
PS - The audio is a little finicky, just wanted something rough for the effect.
A Pen by Jack Rugile on CodePen.