Closed jhrcek closed 3 years ago
I don't think any of the css code works anymore. It should really be deleted.
What would you suggest as an ergonomic way to achieve this kind of simple 3D rotation?
Well, 3D is beyond the specification for SVG. Some SVG renderers do support CSS3 but you're in uncharted waters. I don't expect there are any easy ways of doing 3D graphics with SVGs.
Ok, I was able to achieve the rotation I wanted using scaleXY
+ some trig functions. I'm closing this.
I'd like to apply [rotateX](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/rotateX()) as CSS property to an element to animate 3D rotation around X axis.
Here's a sample code, but try as I might, the property doesn't appear in the final svg
The CSS seems valid when rendered in GHCi:
But it doesn't end up in the output svg that appears in reanimate browser viewer
Do you have any general observations why that CSS property is not applied? Are there some unsupported properties or something? If not, I'll look more deeply into this over the weekend.