Advertisement
danateruel

Hover Sidebar for Navigation

Jul 31st, 2012
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.21 KB | None | 0 0
  1. PASTE THIS UNDER <STYLE>:
  2.  
  3.  
  4.  
  5.  
  6. /*** HOVER DROP DOWN MENU/DESCRIPTION... ***/
  7. a {color:;text-decoration:none;-webkit-transition: all 1s ease-out;-moz-transition: all 1s ease-out;transition: all 1s ease-out;}
  8.  
  9. .fufu {width:30px;margin-left: 30px; -webkit-transition: all 1s ease-out;-moz-transition: all 1s ease-out;transition: all 1s ease-out;}
  10.  
  11. .fufu:hover {-webkit-transform: translate(1em,0);-moz-transform: translate(1em,0);-o-transform: translate(1em,0);}
  12.  
  13. #biter
  14.  
  15. #bite a {display:block}
  16.  
  17. #bite .death {margin-top:-45px; margin-left: 30px;filter: alpha(opacity = 0);opacity:0;-webkit-transition: all 1s ease-out;-moz-transition: all 0.7s ease-out;transition: all 1s ease-out;}
  18.  
  19. #bite:hover .death {margin-top:-10px;margin-left: 30px;-webkit-transition: all 0.1s ease-out;-moz-transition: all 0.1s ease-out;transition: all 0.1s ease-out; filter: alpha(opacity = 100);filter: alpha(opacity = 100);opacity:100;}
  20.  
  21.  
  22.  
  23.  
  24. /*** ROUND NAVIGATION BUTTON***/
  25. div.navigate a{
  26. background: #fff; color: #a8a8a8; border: 1px solid #ebd3df; display:block; width: 48px; height: 15px; text-align: center; padding-top:2px; margin-left:2px; margin-top:2px; position:relative; text-align: center; z-index:1; font-weight: normal; display: inline-block;
  27. }
  28. div.navigate a:hover{
  29. background: #fff; letter-spacing:1px; border: 1px solid #FBBBB9;-moz-border-radius:7px; -webkit-border-radius:7px;
  30. }
  31.  
  32.  
  33. /*** SIDING NAVIGATION BUTTON***/
  34. div.button a{
  35. display: inline-block;
  36. color: #a8a8a8;
  37. background-color:#ebd3df;
  38. height:15px;
  39. width: 280px;
  40. padding-left:5px;
  41. padding-top:2px;
  42. border-right: 4px solid #FBBBB9;
  43. }
  44.  
  45. div.button a:hover{
  46. width: 132px;
  47. text-align:right;
  48. border-right: 55px solid #FBBBB9;
  49. padding-right:2px;
  50. color: #a8a8a8;
  51. background-color:#f1e9ec;
  52. -webkit-transition: 0.5s;
  53. -moz-border-radius:7px; -webkit-border-radius:7px;
  54. }
  55.  
  56.  
  57. /*** SIDEBAR ***/
  58.  
  59. div#sidebar2{
  60. width:300px;
  61. position:fixed;
  62. height:400px;
  63. margin-top:200px;
  64. margin-left:120px;
  65. padding:5px;
  66. top: 0px;
  67. left: 5px;
  68. border: 2px solid #FBBBB9;
  69. background-color: #fff;
  70. }
  71.  
  72. div#sidebar3{
  73. width:300px;
  74. position:fixed;
  75. height:400px;
  76. margin-top:200px;
  77. margin-left:120px;
  78. padding:5px;
  79. background-color:#fff;
  80. top: 0px;
  81. left: 5px;
  82. border: 2px solid #ebd3df;
  83.  
  84. }
  85.  
  86.  
  87.  
  88. PASTE THIS UNDER <BODY>:
  89.  
  90.  
  91.  
  92.  
  93.  
  94. <!-- SIDEBAR -->
  95. <div id="bite">
  96. <h4><center>
  97. <div id="sidebar2"><br>
  98. <h5>{title}</h5><br>
  99.  
  100. <img src="http://24.media.tumblr.com/tumblr_lwtb3cB7ag1r74hg4o1_500.jpg" width="300px"><br><br>
  101. {description}
  102.  
  103.  
  104.  
  105. </div>
  106.  
  107. </center></h4>
  108.  
  109. <div class="death">
  110. <div align="center">
  111. <div id="sidebar3">
  112. <div class="navigate">
  113. <a href="/">HOME</a>
  114. <a href="/ask">ASK</a>
  115. <a href="/archive">ARCHIVE</a>
  116. <a href="http://themesforya.tumblr.com/">©CREDIT</a>
  117. </div><br>
  118. <img src="http://25.media.tumblr.com/tumblr_lwk3vaOf1z1qfwihyo1_500.jpg" width="300px"><br><br>
  119.  
  120. <div class="button">
  121. <a href="LINK URL">LINK NAME</a>
  122. <a href="LINK URL">LINK NAME</a>
  123. <a href="LINK URL">LINK NAME</a>
  124. <a href="LINK URL">LINK NAME</a>
  125. <a href="LINK URL">LINK NAME</a>
  126. <a href="LINK URL">LINK NAME</a>
  127. <a href="LINK URL">LINK NAME</a>
  128. <a href="LINK URL">LINK NAME</a>
  129. <a href="LINK URL">LINK NAME</a>
  130. </div><br>
  131.  
  132.  
  133.  
  134. </div>
  135. </div>
  136. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement