| Start |
|---|
Compass pointer or needle shape using 3D transforms CSSHTMLIn the above example, a needle or compass pointer shape is created using 3D transforms. Generally when we apply the The output of the above example would be a needle resting on its tip. For creating a needle that is resting on its base, the rotation should be along the X-axis instead of along Y-axis. So the This pen (opens new window) uses a similar approach to create something that resembles the Safari logo or a compass dial. Screenshot of element with no transform: Screenshot of element with only 2D transform: Screenshot of element with 3D transform: |
| 3D text effect with shadow HTML: CSS: View example with additional hover effect (opens new window) In this example, the text is transformed to make it look like it is going into the screen away from the user. The shadow is transformed accordingly so it follows the text. As it is made with a pseudo element and the The white "light" is made with a pseudo element on the |
| 3D cube 3D transforms can be use to create many 3D shapes. Here is a simple 3D CSS cube example: HTML: CSS: View this example (opens new window) Should be noted that:
|
| backface-visibility The With 3D transforms and the For example, this would flip an element away from the screen: Firefox 10+ and IE 10+ support It has 4 values:
RemarksCoordinate system3D transforms are made according to an The following image shows an example of coordinates in Euclidean space: In CSS,
The following image shows how these coordinates are translated in CSS: |
Read Article
https://develop.horje.com/learn/1434/reference