Advertisement
Guest User

Transition Delays Ex 4

a guest
Mar 27th, 2014
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.64 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3. <head>
  4. <title>{Title}</title>
  5. <link rel="shortcut icon" href="{Favicon}">
  6. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  7.  
  8. <!---
  9.  
  10.  
  11. 888 8888888 888b d888 8888888888 .d8888b.
  12. 888 888 8888b d8888 888 d88P Y88b
  13. 888 888 88888b.d88888 888 Y88b.
  14. 888 888 888Y88888P888 8888888 "Y888b.
  15. 888 888 888 Y888P 888 888 "Y88b.
  16. 888 888 888 Y8P 888 888 "888
  17. 888 888 888 " 888 888 Y88b d88P
  18. 88888888 8888888 888 888 8888888888 "Y8888P"
  19.  
  20. --->
  21.  
  22.  
  23. <style type="text/css">
  24.  
  25.  
  26.  
  27.  
  28.  
  29. #credit {
  30. bottom:3px;
  31. position:fixed;
  32. right:10px;
  33. float:right;
  34. font-family:calibri;
  35. color:black;
  36. font-size:9px;
  37. letter-spacing:1px;
  38. text-transform:uppercase;
  39. padding:5px;
  40.  
  41. }
  42.  
  43. #credit a {
  44. color:black;
  45. background-color:white;
  46. padding:5px;
  47. -webkit-transition-duration:.8s;
  48. -moz-transition-duration:.8s;
  49. -o-transition-duration:.8s;
  50. -ms-transition-duration:.8s;
  51. }
  52.  
  53. #credit a:hover {
  54. color:white;
  55. background-color:#00bdb3;
  56. }
  57.  
  58.  
  59. #content {
  60. width:250px;
  61. left:50%;
  62. margin-left:-165px;
  63. position:fixed;
  64. height:140px;
  65. padding:15px;
  66. background-color:black;
  67. font-family:Helvetica;
  68. text-transform:uppercase;
  69. letter-spacing:10px;
  70. color:white;
  71. font-size:25px;
  72. padding-top:100px;
  73. font-weight:100;
  74. text-align:center;
  75. top:50%;
  76. margin-top:-150px;
  77. transition-delay:.9s;
  78.  
  79. -webkit-transition-duration:.3s;
  80. -moz-transition-duration:.3s;
  81. -o-transition-duration:.3s;
  82. -ms-transition-duration:.3s;}
  83.  
  84. #content:hover {
  85. transition-delay:0s;
  86.  
  87. background-color:#5a9aff;
  88. -webkit-transform:scale(2);
  89. -moz-transform:scale(2);
  90. -o-transform:scale(2);
  91. -ms-transform:scale(2);
  92. }
  93.  
  94. #cloud_left {
  95. width:200px;
  96. height:200px;
  97. margin-left:-100%;
  98. opacity:0;
  99. -webkit-transition-duration:.3s;
  100. -moz-transition-duration:.3s;
  101. -o-transition-duration:.3s;
  102. -ms-transition-duration:.3s;
  103. transition-delay:.6s;
  104. }
  105.  
  106. #cloud_left img {
  107. width:200px;
  108. height:200px;
  109. margin-left:-100px;
  110. margin-top:-200px;
  111. -webkit-transition-duration:.3s;
  112. -moz-transition-duration:.3s;
  113. -o-transition-duration:.3s;
  114. -ms-transition-duration:.3s;
  115. }
  116.  
  117. #content:hover #cloud_left {
  118. opacity:1;
  119. margin-left:-20px;
  120. transition-delay:.3s;
  121.  
  122. }
  123.  
  124. #cloud_right {
  125. width:200px;
  126. margin-top:-200px;
  127. height:200px;
  128. margin-left:100%;
  129. opacity:0;
  130. -webkit-transition-duration:.3s;
  131. -moz-transition-duration:.3s;
  132. -o-transition-duration:.3s;
  133. -ms-transition-duration:.3s;
  134. transition-delay:.3s;
  135. }
  136.  
  137. #cloud_right img {
  138. width:150px;
  139. height:150px;
  140. margin-left:100%;
  141. -webkit-transition-duration:.3s;
  142. -moz-transition-duration:.3s;
  143. -o-transition-duration:.3s;
  144. -ms-transition-duration:.3s;
  145. }
  146.  
  147. #content:hover #cloud_right {
  148. opacity:1;
  149. margin-left:0px;
  150. margin-top:-200px;
  151. transition-delay:.6s;
  152.  
  153. }
  154.  
  155. #sun {
  156. width:200px;
  157. height:200px;
  158. margin-top:-500px;
  159. margin-left:180px;
  160. opacity:0;
  161. -webkit-transition-duration:.3s;
  162. -moz-transition-duration:.3s;
  163. -o-transition-duration:.3s;
  164. -ms-transition-duration:.3s;
  165. transition-delay:0s;
  166. }
  167.  
  168. #sun img {
  169. width:100px;
  170. height:100px;
  171. margin-top:-500px;
  172. -webkit-transition-duration:.3s;
  173. -moz-transition-duration:.3s;
  174. -o-transition-duration:.3s;
  175. -ms-transition-duration:.3s;
  176. }
  177.  
  178. #content:hover #sun {
  179. opacity:1;
  180. margin-top:120px;
  181. transition-delay:.9s;
  182.  
  183. }
  184.  
  185. </style>
  186.  
  187. </head>
  188. <body>
  189.  
  190. <div id="content">Hover Here
  191. <div id="cloud_left"><img src="http://www.freestockphotos.biz/pictures/15/15146/Illustration+of+a+stormy+cloud.png"></div>
  192. <div id="cloud_right"><img src="http://www.freestockphotos.biz/pictures/15/15146/Illustration+of+a+stormy+cloud.png"></div>
  193. <div id="sun"><img src="http://www.webweaver.nu/clipart/img/nature/planets/sun-wearing-sunglasses.png"</div>
  194. </div>
  195.  
  196. <div id="credit"><a href="http://ofcuteboys.tumblr.com/">ofcuteboys</a></div>
  197.  
  198.  
  199. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement