Caylo

Fade updates tab

Dec 29th, 2013
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.02 KB | None | 0 0
  1. /* Paste this somewhere in your CSS */
  2.  
  3. #updates {
  4. text-align: center;
  5. font-size: 9px;
  6. position:fixed;
  7. -webkit-transition: all .5s ease-in-out;
  8. -moz-transition: all .5s ease-in-out;
  9. -o-transition: all .5s ease-in-out;
  10. z-index:999;
  11. }
  12.  
  13. #updates:hover #hidden{opacity:1;-webkit-transition: all .5s ease-in-out;
  14. -moz-transition: all .5s ease-in-out;
  15. -o-transition: all .5s ease-in-out;}
  16.  
  17. #hidden {
  18. padding:2px;
  19. margin-left:20px;
  20. margin-top:45px;
  21. width:110px;
  22. opacity:0;
  23. -webkit-transition: all .5s ease-in-out;
  24. -moz-transition: all .5s ease-in-out;
  25. -o-transition: all .5s ease-in-out;
  26. }
  27.  
  28. #visible{
  29.     position:fixed;
  30.     z-index:50;
  31.     margin-left:42px;
  32.     margin-top:-30px;
  33. }
  34.  
  35. #visible img {
  36. text-align: center;
  37. color:#454545;
  38. padding: 5px 0 8px 0;
  39. width: 70px;
  40. height:auto;
  41. }
  42.  
  43.  
  44. /* Paste this at the top of your HTML, right after <body> and fill in image and text*/
  45.  
  46. <div id="updates">
  47.  
  48. <div id="visible"><img src="IMAGE URL HERE"></div>
  49. <div id="hidden">
  50. YOUR TEXT HERE
  51. </div>
  52. </div>
Advertisement
Add Comment
Please, Sign In to add comment