Earlier quoted context omitted.
Really neat. Would it be possible to make the letters go gray when they go "behind the cube" from POV of the camera?
Oh yeah that would look cool… Possibly transparent faces of the cube with a particular `mix-blend-mode` that leaves the background color alone but dims letters that get behind it? (That's just a wild guess, I don't know if it's actually possible.)
Spinning Diagrams with CSS
21–30 of 45 posts
Re: Spinning Diagrams with CSS
#22Re: Spinning Diagrams with CSS
#23Here's a fluid-width cube carousel you can stop at its faces: https://ericfortis.github.io/web-animations/#-fluid-3d-cube-... Source: https://github.com/ericfortis/web-animations/blob/main/3d-ca...
Re: Spinning Diagrams with CSS
#24Re: Spinning Diagrams with CSS
#25Now make it respond to touch
Re: Spinning Diagrams with CSS
#26...which is the same 2D/3D illusion, but made with, you know... humans.
Re: Spinning Diagrams with CSS
#27Earlier quoted context omitted.
Oh yeah that would look cool… Possibly transparent faces of the cube with a particular `mix-blend-mode` that leaves the background color alone but dims letters that get behind it? (That's just a wild guess, I don't know if it's actually possible.)
Faces of the cube with the same color as the background and opacity 0.2 would almost certainly work. My next thought is duplicate the original cube, remove the characters from the duplicate cube and set the color on the duplicate only, then move the duplicate cube back one pixel in the z direction.
Here's an editable copy of the code if anyone sees this and wants to try adding the faces - https://jsfiddle.net/t0crk5do/
Re: Spinning Diagrams with CSS
#28You 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.
Re: Spinning Diagrams with CSS
#29I wonder what a screen reader reads out when it encounters this
You can definitely make this accessible but that alone is a whole exercise. The best bet would be to use MathML-in-HTML and hope that the reader supports it.
Re: Spinning Diagrams with CSS
#30Now make it respond to touch