Translate3d affect drop-shadow - HTML CSS CSS Property

HTML CSS examples for CSS Property:box-shadow

Description

Translate3d affect drop-shadow

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">
.top {
   position:absolute;
   z-index:2;<!--from  ww w  . jav a2 s.c o  m-->
   width:0;
   height:0;
   border-left:51px solid Chartreuse;
   border-right:51px solid yellow;
   border-top:51px solid blue;
   -webkit-filter:drop-shadow(6px 6px 11px pink);
}

.bottom {
   height:81px;
}

div {
   -webkit-transform:translate4d(0px, 0px, 0px);
}
</style> 
 </head> 
 <body> 
  <div class="top"></div> 
  <div class="bottom translated"></div> 
  <div class="top"></div> 
  <div class="bottom"></div>  
 </body>
</html>

Related Tutorials