RT S. Shahriar thinks you are awesome 😊 so he
If we can have n-gon shapes, we can have n-gon pyramids too! We only need to calculate the slant height and angle 😉
So, I coded a 3D Pyramid with SCSS
Try it on @CodePen:
(drag to rotate, double-click to animate the rotation)
S. Shahriar thinks you are awesome 😊 so he: 20 lines of PUG, ~80 lines of SCSS, and you gift yourself a good-looking CSS 3D pentagon. Sweet, right? 😄
Psst! n= 42 makes a cylinder/disc 😆
Full code on @CodePen:
Yep, it was fun!
https://codepen.io/ShadowShahriar/pen/vYepQNa
https://twitter.com/ShadowShahriar/status/1509920900941971461