Rotate & scale card on containing item `:hover` as all other items fade out behind. Using the pure #CSS magic 🪄 of `:has()`!
Bonus: menu that moves where you click on rotated card, taking into account its transform (https://en.wikipedia.org/wiki/Transformation_matrix)
Live on @codepen https://codepen.io/thebabydino/pen/JoExjEz
#Maths #geometry #cssTransforms #dev #web #code #webDev #coding #webDevelopment #frontend #cssGrid #cssLayout