Show scrollbar on mouse hover - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover to Show

Description

Show scrollbar on mouse hover

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <title>Lorem ipsum dolor </title> 
  <style>
.scrollbox {<!--from  ww  w  .j a va2  s .c  o m-->
   width:11em;
   height:11em;
   overflow:auto;
   visibility:hidden;
}

.scrollbox-content,
.scrollbox:hover,
.scrollbox:focus {
   visibility:visible;
}

.scrollbox_delayed {
   transition:visibility 0.3s;
}

.scrollbox_delayed:hover {
   transition:visibility 0s 0.3s;
}
</style> 
 </head> 
 <body translate="no"> 
  <h2>Lorem ip</h2> 
  <div class="scrollbox" tabindex="0"> 
   <div class="scrollbox-content">
     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 lacinia sem. Proin luctus facilisis volutpat. Ut semper sit amet purus quis ornare. Quisqu 
   </div> 
  </div> 
  <h2>Lorem ipsu</h2> 
  <div class="scrollbox scrollbox_delayed" tabindex="0"> 
   <div class="scrollbox-content">
     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 lacinia sem. Proin luctus facilisis volutpat. Ut semper sit amet purus quis ornare. Quisqu 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials