TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Spinning Diagrams with CSS

954 pointsby hrldcprabout 2 years ago

18 comments

hrldcprabout 2 years ago
Some commenters on HN and Twitter were curious how I made the spinning diagrams in a previous thing I wrote, so 8 months later I finally wrote down an explanation.<p>(Previous HN thread here - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32528769" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32528769</a> )
评论 #35648609 未加载
评论 #35649507 未加载
评论 #35647980 未加载
评论 #35647179 未加载
评论 #35648023 未加载
efortisabout 2 years ago
Here&#x27;s a fluid-width cube carousel you can stop at its faces:<p><a href="https:&#x2F;&#x2F;ericfortis.github.io&#x2F;web-animations&#x2F;#-fluid-3d-cube-carousel" rel="nofollow">https:&#x2F;&#x2F;ericfortis.github.io&#x2F;web-animations&#x2F;#-fluid-3d-cube-...</a><p>Source:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;ericfortis&#x2F;web-animations&#x2F;blob&#x2F;main&#x2F;3d-carousel.js">https:&#x2F;&#x2F;github.com&#x2F;ericfortis&#x2F;web-animations&#x2F;blob&#x2F;main&#x2F;3d-ca...</a>
评论 #35649865 未加载
评论 #35647663 未加载
评论 #35656909 未加载
unwindabout 2 years ago
This is awesome in (for me) at least two dimensions at the same time: it&#x27;s a very interesting way of visualizing the actual math concept going on, by making the equation 3D to match what it&#x27;s modelling. At the same time, it&#x27;s very impressive technically that this can be done at all, and done without active per-frame custom code.<p>That this amount of &quot;whoa that&#x27;s not a 2D document&quot; can be done by the web&#x27;s standard stylizing technology is amazing. I&#x27;m not (again, personally) 100% convinced it <i>should</i> be this amazing[*], but that&#x27;s another discussion.<p>Well done.<p>[*]: I&#x27;m just afraid of the complexity level in modern browsers, that&#x27;s the other side of the &quot;wow it can do that?&quot; coin.
asimpletuneabout 2 years ago
You can do so much with pure css. Using checkboxes elements to toggle menus comes to mind as one of the lowest hanging fruits. Also detail elements are great.
评论 #35650277 未加载
packetslaveabout 2 years ago
The pyramid animation at the top reminds me of 11:30 in this video: <a href="https:&#x2F;&#x2F;youtu.be&#x2F;q6MJSfjXUgQ?t=690" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;q6MJSfjXUgQ?t=690</a><p>...which is the same 2D&#x2F;3D illusion, but made with, you know... humans.
评论 #35650771 未加载
Benney_about 2 years ago
3D CSS is actually super powerful, and once you wrap your head around how transforms interact with each other you can use it like any other 3D library.<p>Me and a friend made a game using 3D CSS a few years ago: <a href="https:&#x2F;&#x2F;js13kgames.com&#x2F;entries&#x2F;3dc5s" rel="nofollow">https:&#x2F;&#x2F;js13kgames.com&#x2F;entries&#x2F;3dc5s</a>.<p>I&#x27;m not sure I&#x27;d ever use it again for something that large as it&#x27;s a hell of a lot of work but so satisfying once you see the monstrosity you&#x27;ve created running!
robbywashere_about 2 years ago
If Leonardo Da Vinci knew css
评论 #35648774 未加载
评论 #35649249 未加载
xystabout 2 years ago
I wonder what a screen reader reads out when it encounters this
评论 #35650356 未加载
myfonjabout 2 years ago
I have used the same approach for plotting named colours in RGB cube [1]<p>[1]: <a href="https:&#x2F;&#x2F;codepen.io&#x2F;myf&#x2F;full&#x2F;poyoyLr" rel="nofollow">https:&#x2F;&#x2F;codepen.io&#x2F;myf&#x2F;full&#x2F;poyoyLr</a>
ramesh31about 2 years ago
Great example of how absurdly powerful (yet simple) CSS is. Try doing this in one line with literally any other UI technology in existence.
throwaway14356about 2 years ago
i made some n dimensional chart one time. it starts with the usual 2D x,y,z axes then rotates as if a cube to the next chart keeping the dots in the same 3D spot ending in 2D and on to the next chart :)<p>(using css where possible ofc)
sideprojectabout 2 years ago
I&#x27;m more impressed with the domain name.
Giorgiabout 2 years ago
Damn is that 1 symbol domain?
xmppfansabout 2 years ago
It is very cool!
dist-epochabout 2 years ago
On one hand people are in awe at this, on the other they complain how bloated browsers are and how much functionality is crammed in them and how they wish for a simple &quot;document only web&quot;.<p>Pick one.
Cypherabout 2 years ago
It&#x27;s nice
samstaveabout 2 years ago
Maze runnner. interactions.
efieldsabout 2 years ago
Now make it respond to touch
评论 #35650366 未加载
评论 #35650050 未加载