Follow

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!
codepen.io/ShadowShahriar/pen/

:sys_twitter: twitter.com/ShadowShahriar/sta

· · Twitter · 0 · 0 · 0
Sign in to participate in the conversation
小森林

每个人都有属于自己的一片森林,也许我们从来不曾走过,但它一直在那里,总会在那里。迷失的人迷失了,相逢的人会再相逢。愿这里,成为属于你的小森林。