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://news.ycombinator.com/item?id=32528769" rel="nofollow">https://news.ycombinator.com/item?id=32528769</a> )
Here's a fluid-width cube carousel you can stop at its faces:<p><a href="https://ericfortis.github.io/web-animations/#-fluid-3d-cube-carousel" rel="nofollow">https://ericfortis.github.io/web-animations/#-fluid-3d-cube-...</a><p>Source:<p><a href="https://github.com/ericfortis/web-animations/blob/main/3d-carousel.js">https://github.com/ericfortis/web-animations/blob/main/3d-ca...</a>
This is awesome in (for me) at least two dimensions at the same time: it's a very interesting way of visualizing the actual math concept going on, by making the equation 3D to match what it's modelling. At the same time, it's very impressive technically that this can be done at all, and done without active per-frame custom code.<p>That this amount of "whoa that's not a 2D document" can be done by the web's standard stylizing technology is amazing. I'm not (again, personally) 100% convinced it <i>should</i> be this amazing[*], but that's another discussion.<p>Well done.<p>[*]: I'm just afraid of the complexity level in modern browsers, that's the other side of the "wow it can do that?" coin.
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.
The pyramid animation at the top reminds me of 11:30 in this video: <a href="https://youtu.be/q6MJSfjXUgQ?t=690" rel="nofollow">https://youtu.be/q6MJSfjXUgQ?t=690</a><p>...which is the same 2D/3D illusion, but made with, you know... humans.
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://js13kgames.com/entries/3dc5s" rel="nofollow">https://js13kgames.com/entries/3dc5s</a>.<p>I'm not sure I'd ever use it again for something that large as it's a hell of a lot of work but so satisfying once you see the monstrosity you've created running!
I have used the same approach for plotting named colours in RGB cube [1]<p>[1]: <a href="https://codepen.io/myf/full/poyoyLr" rel="nofollow">https://codepen.io/myf/full/poyoyLr</a>
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)
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 "document only web".<p>Pick one.