Advertisement
kopilo

futurebox + opacity css

Nov 18th, 2011
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.87 KB | None | 0 0
  1. /* file name lb.css */
  2. #overlay {
  3.  
  4.     opacity: 0;
  5.     position:absolute;
  6.     height:100%;
  7.     width:100%;
  8.     margin:0;top:0;left:0;
  9.     background-color:rgba(0,0,0,0.95);
  10.         transition: opacity 0.7s;
  11.     -moz-transition: opacity 0.7s; /* Firefox 4 */
  12.     -webkit-transition: opacity 0.7s; /* Safari and Chrome */
  13.     -o-transition: opacity 2s; /* Opera */
  14. }
  15.  
  16. #magnolia-lb {
  17.     position:absolute;
  18.     padding:0.5em;
  19.     border:1em solid #999999;
  20.     background-color:#333333;
  21.     margin:auto;
  22.     width:500px;
  23.     height:375px;
  24.     top:0; bottom:0; left:0; right:0;
  25.    
  26. }
  27.  
  28. ul li input { opacity: 0;}
  29. ul li input:checked + #overlay {
  30.     opacity: 100;
  31.         transition: opacity 0.7s;
  32.     -moz-transition: opacity 0.7s; /* Firefox 4 */
  33.     -webkit-transition: opacity 0.7s; /* Safari and Chrome */
  34.     -o-transition: opacity 0.7s; /* Opera */
  35. }
  36.  
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement