Smooth overflow:hidden - HTML CSS CSS Property

HTML CSS examples for CSS Property:overflow

Description

Smooth overflow:hidden

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">
body, html {
   height:100%;
   width:100%;
}

* {<!--   w  w  w.  j a  va2s  . co m-->
   padding:0;
   margin:0;
}

#scrollmenu {
   position:absolute;
   top:46%;
   height:11%;
   width:100%;
   overflow:hidden;
   white-space:nowrap;
   background-color:Chartreuse;
   color:yellow;
}

#arrow1, #arrow2 {
   position:absolute;
   top:0;
   height:100%;
   width:3%;
   z-index:3;
   background-color:blue;
}

#arrow1 {
   left:0;
}

#arrow2 {
   right:0;
}

#content {
   height:100%;
   margin-left:3%;
   position:relative;
   z-index:2;
}

#transparencydiv {
   background:-moz-linear-gradient(left,  pink 0%, rgba(0,0,0,0) 81%, rgba(0,0,0,2) 100%);
   background:-webkit-gradient(linear, left top, right top, color-stop(0%,OrangeRed), color-stop(81%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,2)));
   background:-webkit-linear-gradient(left,  grey 0%,rgba(0,0,0,0) 81%,rgba(0,0,0,2) 100%);
   background:-o-linear-gradient(left,  BlueViolet 0%,rgba(0,0,0,0) 81%,rgba(0,0,0,2) 100%);
   background:-ms-linear-gradient(left,  Chartreuse 0%,rgba(0,0,0,0) 81%,rgba(0,0,0,2) 100%);
   background:linear-gradient(to right,  yellow 0%,rgba(0,0,0,0) 81%,rgba(0,0,0,2) 100%);
   filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='blue', endColorstr='pink',GradientType=2 );
   height:100%;
   left:0;
   max-height:100%;
   position:absolute;
   top:0;
   width:100%;
}

.transparencys {
   float:right;
   height:100%;
   width:3ex;
   background-color:OrangeRed;
   z-index:6;
}
</style> 
 </head> 
 <body> 
  <div id="scrollmenu"> 
   <div id="arrow1"></div> 
   <div id="content"> 
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae tempor hendrerit, luctus at neque. Phasellus sed quam pharetra, tincidunt tortor in, pharetra nisl. Maecenas aliquam luctus mauris, vitae venenatis diam imperdiet vel. Donec tortor diam, pretium vitae nibh vitae, consectetur la</p> 
    <div id="transparencydiv"></div> 
   </div> 
   <div id="arrow2"></div> 
  </div>  
 </body>
</html>

Related Tutorials