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 & 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.

You can apply CSS conversions to individual SVG elements, but be careful:

  • IE will completely ignore them
  • Firefox (V32 and earlier) and chrome (v37 and earlier) will count the different conversion-origin, so you want to position your elements, such as the SVG coordinate system origin (used by Chrome) the bounding box of origin Is similar to Firefox).
  • Chrome will not flip the individual text elements.
  • There is currently no z-index in SVG, so you can not use it to ensure that the right element is "at the top" instead, you have to hide the flipped element.

    The examples below have been removed. To get an idea of ​​the problems you have taken, test it in a few different browsers:

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -