CSS3 3D flip card effect with SVG elements -
Is CSD a way to create 3D flip cards that have an effect in SVG made with S3?
I should be part of the D3 chart flip, similar to the effect described for HTML elements, revealing different content on the back.
It also includes the effect. Is this a way to apply in parts of a D3 chart?
itemprop = "text">
The fact that you are using D3.js does not affect the ability to make 3D conversions is. The fact is that you are using SVG, however, make it complicated.
SVG has its own transform system and coordination system, which is not in line with the way CSS implementation is implemented on HTML elements. However, the implementation of the browser is still very incompatible.
As Lars said in the comment, if you want to flip your entire SVG, then it is a matter of implementing CSS changes (as described) to parents You can apply CSS conversions to individual SVG elements, but be careful: The examples below have been removed. To get an idea of the problems you have taken, test it in a few different browsers: & lt ; Div & gt; . However, in order to "flip" a separate SVG element or group to reveal different content, you need two different SVG elements, while flipping one of them while using CSS conversions. One is over-imposed on each other.
Svg graphic {padding: 2 am 1.2%; Margin: 0; Swim left; Overflow: visible; Shapes-rendering: geometricPrecision; Stroke-width: 3; } .graphic.CSS {-webkit-perspective: 500px; Perspective: 500px; } .graphic.CSS.spin * {-webkit-transition: 3s Linear; Infection: 3S linear; -webkit-change-origin: 50% 50%; Change-origin: 50% 50%; } .graphic.CSS.spin: hover * {-webkit-transform: rotateY (360deg); Consequently: rotateY (360deg); }
& lt; Svg class = "graphic CSS spin" & gt; & Lt; G id = "svg-shapes" & gt; & Lt; Reset width = "100%" height = "100%" Rx = "2em" Fill = "light blue" stroke = "green" /> & Lt; Circle r = "1.5em" cy = "2.5em" cx = "70%" fill = "lightyellow" stroke = "golden node" /> & Lt; Rect width = "5em" height = "2em" x = "20%" y = "2.5em" fill = "lavender" stroke = "indigo" /> & lt; / G> & Lt; Text x = "20%" dx = "2.5em" text-anchor = "medium" y = "2.5em" dy = "1em" & gt; 3D ??? & Lt; / Text & gt; & Lt; / Svg & gt; However, despite this, you decide to try and manage it, please come back and leave another with your solution Reply.
Comments
Post a Comment