Border-radius and translate3d - HTML CSS CSS Property

HTML CSS examples for CSS Property:border-radius

Description

Border-radius and translate3d

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">

.scroller{<!--from  w  w  w  .  j av a  2 s  .  co m-->
   width: 300px;
   height: 500px;
   border: 3px solid red;
   border-radius: 30px;
   overflow: hidden;
}
.scroller-content{
   width: 300px;
   height: 300px;
   background: green;
   -webkit-transform: translate(0, -8px);
}


      </style> 
 </head> 
 <body> 
  <div class="scroller"> 
   <div class="scroller-content"></div> 
  </div>  
 </body>
</html>

Related Tutorials