DEV Community

Discussion on: How to do stunning 3D with pure HTML/CSS

Collapse
 
akinwunmi profile image
Jurrit van der Ploeg • Edited

Thank you for this great insight into the perspective utility 🔥
A next great step could be changing the shade of the faces based on their position on the X, Y and Z axis – something I will definitely dig into following up on this post!

Collapse
 
martinp profile image
Martin PAUCOT

I am really not a 3D expert but there is surely a mathematical way of calculating the correct shades for each side (and even using gradients)!
I would love to see that in action!

Collapse
 
zmzlois profile image
Lois

pure spitballing, maybe css custom properties can do this: developer.mozilla.org/en-US/docs/W...