Advertisement
ValhallaIsOurKingdom

hannibal, plz.

Jun 6th, 2015
800
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.54 KB | None | 0 0
  1. /******************IMAGEN+TEXTO+HOVER******************/
  2.  
  3. <center>
  4.  
  5. <div id="caja1" style="background-image: url('http://i.imgur.com/01FjkXF.png');">
  6.  
  7. <div id="text2">
  8.  
  9. <div id="text">
  10. will graham
  11. </div>
  12.  
  13. </div>
  14.  
  15. <div id="caja2">
  16.  
  17. <div id="text">
  18. <a href="url">hannibal</a> // <a href="url">plz</a>
  19. </div>
  20.  
  21. </div>
  22.  
  23. </div>
  24.  
  25.  
  26. <style type="text/css">
  27.  
  28. #caja1{
  29. position:relative;
  30. border: 10px solid #000;
  31. width:180px;
  32. height:100px;
  33. background: #000;
  34. }
  35.  
  36. #caja2{
  37. width:100px;
  38. height:50px;
  39. position:absolute;
  40. top:21px;
  41. left:33px;
  42. border: 5px solid #fff;
  43. -webkit-transform: scale(0);
  44. transform: scale(0);
  45. background-color: #000;transition:ease-in-out 1s;-webkit-transition:ease-in-out 1s;-ms-transition:ease-in-out 1s;-moz-transition:ease-in-out 1s;-webkit-transform: scale(0.2); -ms-transform: scale(0.2); -o-transform: scale(0.2); transform: scale(0.2);opacity:0;
  46. }
  47.  
  48. #caja1:hover #caja2{
  49. -webkit-transform: scale(1); -ms-transform: scale(1); -o-transform: scale(1); transform: scale(1);opacity:1;}
  50.  
  51. #text2 {
  52. margin-top:21px;
  53. margin-left:-5px;
  54. width:100px;
  55. height:50px;
  56. border: 5px solid #fff;
  57. text-align: center;
  58. background: #000;
  59. color: #fff;
  60. text-transform: uppercase;
  61. }
  62. #text {
  63. padding-top: 18px;
  64. width:100px;
  65. height:50px;
  66. text-align: center;
  67. text-transform: uppercase;
  68. }</style>
  69. </center>
  70.  
  71.  
  72. /******************TEXTO+HOVER******************/
  73.  
  74. <center>
  75. <div id="caja1">
  76.  
  77. <div id="text2">
  78.  
  79. <div id="text">
  80. will graham
  81. </div>
  82.  
  83. </div>
  84.  
  85. <div id="caja2">
  86.  
  87. <div id="text">
  88. <a href="url">hannibal</a> // <a href="url">plz</a>
  89. </div>
  90.  
  91. </div>
  92.  
  93. </div>
  94.  
  95.  
  96. <style type="text/css">
  97.  
  98. #caja1{
  99. position:relative;
  100. border: 10px solid #000;
  101. width:180px;
  102. height:100px;
  103. background: #000;}
  104.  
  105. #caja2{width:100px;
  106. height:50px;
  107. position:absolute;
  108. top:21px;
  109. left:33px;
  110. border: 5px solid #fff;
  111. -webkit-transform: scale(0);
  112. transform: scale(0);
  113. background-color: #000;transition:ease-in-out 1s;-webkit-transition:ease-in-out 1s;-ms-transition:ease-in-out 1s;-moz-transition:ease-in-out 1s;-webkit-transform: scale(0.2); -ms-transform: scale(0.2); -o-transform: scale(0.2); transform: scale(0.2);opacity:0;}
  114.  
  115. #caja1:hover #caja2{-webkit-transform: scale(1); -ms-transform: scale(1); -o-transform: scale(1); transform: scale(1);opacity:1;}
  116.  
  117. #text2 {
  118. margin-top:21px;
  119. margin-left:-5px;
  120. width:100px;
  121. height:50px;
  122. border: 5px solid #fff;
  123. text-align: center;
  124. background: #000;
  125. color: #fff;
  126. text-transform: uppercase;
  127. }
  128. #text {
  129. padding-top: 18px;
  130. width:100px;
  131. height:50px;
  132. text-align: center;
  133. text-transform: uppercase;
  134. }</style>
  135. </center>
  136.  
  137.  
  138. /******************IMAGEN+HOVER******************/
  139.  
  140. <center>
  141. <div id="caja1" style="background-image: url('http://i.imgur.com/01FjkXF.png');">
  142.  
  143. <div id="caja2">
  144.  
  145. <div id="text">
  146. <a href="url">hannibal</a> // <a href="url">plz</a>
  147. </div>
  148.  
  149. </div>
  150.  
  151. </div>
  152. <style type="text/css">
  153.  
  154. #caja1{
  155. position:relative;
  156. border: 10px solid #000;
  157. width:180px;
  158. height:100px;
  159. background: #000;}
  160.  
  161. #caja2{width:100px;
  162. height:50px;
  163. position:absolute;
  164. top:21px;
  165. left:33px;
  166. border: 5px solid #fff;
  167. -webkit-transform: scale(0);
  168. transform: scale(0);
  169. background-color: #000;transition:ease-in-out 1s;-webkit-transition:ease-in-out 1s;-ms-transition:ease-in-out 1s;-moz-transition:ease-in-out 1s;-webkit-transform: scale(0.2); -ms-transform: scale(0.2); -o-transform: scale(0.2); transform: scale(0.2);opacity:0;}
  170.  
  171. #caja1:hover #caja2{-webkit-transform: scale(1); -ms-transform: scale(1); -o-transform: scale(1); transform: scale(1);opacity:1;}
  172.  
  173. #text2 {
  174. margin-top:21px;
  175. margin-left:-5px;
  176. width:100px;
  177. height:50px;
  178. border: 5px solid #fff;
  179. text-align: center;
  180. background: #000;
  181. color: #fff;
  182. text-transform: uppercase;
  183. }
  184. #text {
  185. padding-top: 18px;
  186. width:100px;
  187. height:50px;
  188. text-align: center;
  189. text-transform: uppercase;
  190. }</style>
  191. </center>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement