deebug

Reflection CSS

Feb 23rd, 2012
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.58 KB | None | 0 0
  1. .image
  2. {
  3.    
  4. }
  5.  
  6. .reflection
  7. {
  8.     position:absolute;
  9.     height:70px;
  10.     width:500px;
  11.     overflow:hidden;
  12.     z-index:3;
  13. }
  14.  
  15. .reflection img
  16. {
  17.     position:absolute;
  18.     -moz-transform: scaleY(-1);
  19.     -o-transform: scaleY(-1);
  20.     -webkit-transform: scaleY(-1);
  21.     transform: scaleY(-1);
  22.     filter: FlipV;
  23.     -ms-filter: "FlipV";
  24.     z-index:1;
  25. }
  26.  
  27. .reflection .overlay
  28. {
  29.     position:relative;
  30.     top:0;
  31.     background:url(images/overlay.png) bottom left repeat-x; /* gradient filter or a plain png? */
  32.     z-index:2;
  33.     height:100%;
  34.     width:100%;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment