<!DOCTYPE html> | |
<meta charset="UTF-8"> | |
<link rel="author" title="L. David Baron" href="https://dbaron.org/"> | |
<link rel="author" title="Google" href="http://www.google.com/"> | |
<style> | |
#container { | |
perspective: 400px; | |
perspective-origin: 0 0; | |
} | |
#ref { | |
background-color: green; | |
width: 150px; | |
height: 100px; | |
transform: translateZ(200px); | |
} | |
</style> | |
<div id="container"> | |
<div id="ref"></div> | |
</div> |