I remember seeing a codepen or a fiddle of this effect a while back.
I'm looking to build a small js feature that would track the direction of the mouse movement and transform a css card-like element in 3d space so that it looks like it's being dragged. So if I move my mouse towards the top right it would sort of push down on the top right of the card and and lift the bottom left towards the viewer.
What's an easy way to do this in javascript?