what is cool about this? Animation is not smooth (big jump between views) and code is not pretty either (css in js instead of classes for states)
I'd only toggle a single class on the wrapper (or use hover if that's what you are after. that's what I did to get away without js).
Animations work well with CSS, transform is fastest here.
Use alpha instead of the grey on the shadow and it stacks correctly.
https://jsfiddle.net/s8kgmwL7/36/
You could probably do better than me for the stacking. Animating the margin is not a good thing for performance.
edit: updated a bit