Advertisement
Falkstids

for the love of my life squish

Jan 13th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.87 KB | None | 0 0
  1. <style>
  2. #text{
  3. width:730px;
  4. padding:10px;
  5. color:#fff;
  6. font-family: "Vollkorn SC";
  7. font-weight:900;
  8. font-size:14pt;
  9. position:absolute;
  10. z-index:9;
  11. bottom:18%;
  12. right:0%;
  13. transition-delay:9999999s;
  14. }
  15.  
  16. body:hover #text{
  17. opacity:0;
  18. transition:1s;
  19. transition-delay:7s;
  20. }
  21.  
  22. p{
  23. width: 0px;
  24. animation: type 2s 6s steps(60, end);
  25. overflow:hidden;
  26. white-space: nowrap;
  27. margin: 0px 0 0 0px;
  28. z-index:9;
  29. animation-fill-mode: forwards;
  30.  
  31. }
  32.  
  33. p:nth-child(2){
  34. animation: type2 3s 1s steps(60, end);
  35. animation-fill-mode: forwards;
  36.  
  37. }
  38.  
  39. p:nth-child(3){
  40. animation: type3 4.5s 2s steps(60, end), blink-caret .75s step-end infinite;
  41. animation-fill-mode: forwards;
  42. border-right: .15em solid #eee;
  43. }
  44.  
  45. p:nth-child(4){
  46. animation: type3 5.5s 3s steps(60, end);
  47. animation-fill-mode: forwards;
  48.  
  49. }
  50.  
  51. @keyframes blink-caret {
  52. from, to { border-color: transparent }
  53. 50% { border-color:#fffee7; }
  54. }
  55.  
  56.  
  57.  
  58. @keyframes type{
  59. from { width: 0; }
  60. }
  61.  
  62. @keyframes type2{
  63. 0%{width: 0; }
  64. 40%{width: 0; }
  65. 100%{ width: 100%; }
  66. }
  67.  
  68. @keyframes type3{
  69. 0%{width: 0; }
  70. 68%{width: 0; }
  71. 100%{ width: 45%; }
  72. }
  73. @keyframes type4{
  74. 0%{width: 0; }
  75. 75%{width: 0; }
  76. 100%{ width: 100%; }
  77. }
  78.  
  79. #crossfade > img {
  80. width: 100%;
  81. height: 100%;
  82. position:cover;
  83. top: 0px;
  84. left: 0px;
  85. color: transparent;
  86. opacity: 1;
  87. z-index: 9;
  88. -webkit-backface-visibility: hidden;
  89. -webkit-animation: imageAnimation 30s forwards 0s;
  90. -moz-animation: imageAnimation 30s forwards 0s;
  91. -o-animation: imageAnimation 30s forwards 0s;
  92. -ms-animation: imageAnimation 30s forwards 0s;
  93. animation: imageAnimation 30s forwards 0s;
  94.  
  95. }
  96. #crossfade > img {
  97. width: 100%;
  98. height: 100%;
  99. position: absolute;
  100. top: 0px;
  101. left: 0px;
  102. color: transparent;
  103. opacity: 0;
  104. z-index: 0;
  105. -webkit-backface-visibility: hidden;
  106. -webkit-animation: imageAnimation 30s forwards 0s;
  107. -moz-animation: imageAnimation 30s forwards 0s;
  108. -o-animation: imageAnimation 30s forwards 0s;
  109. -ms-animation: imageAnimation 30s forwards 0s;
  110. animation: imageAnimation 30s forwards 0s;
  111.  
  112.  
  113. }
  114.  
  115. #crossfade > img:nth-child(2) {
  116. -webkit-animation-delay: 6s;
  117. -moz-animation-delay: 6s;
  118. -o-animation-delay: 6s;
  119. -ms-animation-delay: 6s;
  120. animation-delay: 6s;
  121. animation-fill-mode:forwards;
  122.  
  123. }
  124. #crossfade > img:nth-child(3) {
  125. -webkit-animation-delay: 12s;
  126. -moz-animation-delay: 12s;
  127. -o-animation-delay: 12s;
  128. -ms-animation-delay: 12s;
  129. animation-delay: 12s;
  130. animation-fill-mode:forwards;
  131.  
  132. }
  133. #crossfade > img:nth-child(4) {
  134. -webkit-animation-delay: 18s;
  135. -moz-animation-delay: 18s;
  136. -o-animation-delay: 18s;
  137. -ms-animation-delay: 18s;
  138. animation-delay: 18s;
  139. animation-fill-mode:forwards;
  140.  
  141. }
  142. #crossfade > img:nth-child(5) {
  143. -webkit-animation-delay: 24s;
  144. -moz-animation-delay: 24s;
  145. -o-animation-delay: 24s;
  146. -ms-animation-delay: 24s;
  147. animation-delay: 24s;
  148. animation-fill-mode:forwards;
  149.  
  150. }
  151.  
  152. @-webkit-keyframes imageAnimation {
  153. 0% { opacity: 0;
  154. -webkit-animation-timing-function: ease-in; }
  155. 8% { opacity: 1;
  156. -webkit-animation-timing-function: ease-out; }
  157. 17% { opacity: 1 }
  158. 25% { opacity: 0 }
  159. 100% { opacity: 0 }
  160. }
  161.  
  162. @-moz-keyframes imageAnimation {
  163. 0% { opacity: 0;
  164. -moz-animation-timing-function: ease-in; }
  165. 8% { opacity: 1;
  166. -moz-animation-timing-function: ease-out; }
  167. 17% { opacity: 1 }
  168. 25% { opacity: 0 }
  169. 100% { opacity: 0 }
  170. }
  171.  
  172. @-o-keyframes imageAnimation {
  173. 0% { opacity: 0;
  174. -o-animation-timing-function: ease-in; }
  175. 8% { opacity: 1;
  176. -o-animation-timing-function: ease-out; }
  177. 17% { opacity: 1 }
  178. 25% { opacity: 0 }
  179. 100% { opacity: 0 }
  180. }
  181.  
  182. @-ms-keyframes imageAnimation {
  183. 0% { opacity: 0;
  184. -ms-animation-timing-function: ease-in; }
  185. 8% { opacity: 1;
  186. -ms-animation-timing-function: ease-out; }
  187. 17% { opacity: 1 }
  188. 25% { opacity: 0 }
  189. 100% { opacity: 0 }
  190. }
  191.  
  192. @keyframes imageAnimation {
  193. 0% { opacity: 0;
  194. animation-timing-function: ease-in; }
  195. 8% { opacity: 1;
  196. animation-timing-function: ease-out; }
  197. 17% { opacity: 1 }
  198. 25% { opacity: 0 }
  199. 100% { opacity: 0 }
  200. }
  201. </style>
  202. <div id="crossfade">
  203. <img src="http://d9hhrg4mnvzow.cloudfront.net/www.oneshot-game.com/23338732-screen8-small.png">
  204. <img src="http://press.degigames.com/oneshot/images/Red.png" >
  205. <img src="http://www.indiecade.com/images/all_games/oneshot5.png">
  206. <img src="https://www.gamegrin.com/assets/games/oneshot/screenshots/oneshot-screenshot-2.jpg">
  207. <img src="http://www.indiecade.com/images/all_games/oneshot5.png">
  208. </div>
  209. <div id="text">
  210. <p></p>
  211. <p>What if You only had</p>
  212. <p>Oneshot? Rescue the world or go home?</p>
  213. <p>What would you do?</p>
  214. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement