2 ms·
Ah it's your code, sorry for being so harsh than :) 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
by anotheryou 9y ago
Ah it's your code, sorry for being so harsh than :)
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/ 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