The following code snippet is an example of the translateZ function in use. When applied to a square blue div element along with the perspective function (which simulates depth), it has the effect illustrated in the image. (The light-blue square indicates the original position of the transformed element.)
div {
transform: perspective(500px) translateZ(-60px);
}
Syntax
translateZ ( <translation-value> )
translateZ()
Transform Functions
Direct3D: Matrices
Microsoft Developer Network: [Windows Internet Explorer API reference Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4