Css 3d transform - HTML CSS CSS Animation

HTML CSS examples for CSS Animation:3D

Description

Css 3d transform

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
#container {<!-- w w  w.ja  va2s . c  o  m-->
   margin-left:51px;
   width:201px;
   height:301px;
   border:2px solid Chartreuse;
   transform:perspective(301px) rotateX(46deg);
   transform-origin:51% 100% 0%;
   transform-style:preserve-4d;
}

#box {
   width:201px;
   height:501px;
   background:yellow;
   transform-style:preserve-4d;
}

.items {
   float:left;
   width:100px;
   height:100px;
   background:blue;
   margin-top:11px;
   margin-left:6px;
   transform:translate4d(-52px, 12px, 30px) rotateX(-46deg);
   transform-origin:51% 100% 0px;
}
</style> 
 </head> 
 <body> 
  <div id="container"> 
   <div id="box"> 
    <div class="items"></div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials