Advertisement
Falkstids

Titania *incomplete)

Aug 2nd, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.51 KB | None | 0 0
  1. <style>
  2. @import url('https://fonts.googleapis.com/css?family=Cinzel+Decorative:400,900|Roboto');
  3.  
  4. body {
  5. background-color:#101010;
  6. overflow:hidden;
  7. background-image: url("https://www.transparenttextures.com/patterns/shley-tree-2.png");
  8.  
  9.  
  10. }
  11.  
  12.  
  13.  
  14. #ball {
  15. display: inline-block;
  16. width: 200px;
  17. height: 200px;
  18. margin: 0;
  19. border-radius: 50%;
  20. position:absolute;
  21. top:50%;
  22. left:50%;
  23. margin-top:-100px;
  24. margin-left:-100px;
  25. background: radial-gradient(circle at 50% 120%, transparent, #93E4F0 10%, #93E4F0 80%, #062745 100%);
  26. opacity:.8;
  27. animation-name: floating;
  28. animation-duration: 3s;
  29. animation-iteration-count: infinite;
  30. animation-timing-function: ease-in-out;
  31. z-index:9;
  32. transition:1s;
  33. transition-delay:99999999s;
  34. }
  35.  
  36. @keyframes floating {
  37. from { transform: translate(0, 0px); }
  38. 65% { transform: translate(0, 10px); }
  39. to { transform: translate(0, 0px); }
  40. }
  41. #ball:before {
  42. content: "";
  43. position: absolute;
  44. top: 1%;
  45. left: 5%;
  46. width: 90%;
  47. height: 90%;
  48. border-radius: 50%;
  49. background: radial-gradient(circle at 50% 0px, #ffffff, rgba(255, 255, 255, 0) 70%);
  50. -webkit-filter: blur(5px);
  51. z-index: 2;
  52.  
  53. }
  54.  
  55. body:hover #ball{
  56. width:90%;
  57. height:180%;
  58. margin-top:-30%;
  59. margin-left:-45%;
  60. animation-name: none;
  61. opacity:.1;
  62. transition-delay:2s;
  63. }
  64.  
  65.  
  66. #backgroundball{
  67. width:200px;
  68. height:200px;
  69. background-image:url(https://cdn.discordapp.com/attachments/306938078113693697/342083089939562496/bae3b239698f104fd9e6840157ab3942.jpg);
  70. background-size:170%;
  71. border-radius:50%;
  72. position:absolute;
  73. top:50%;
  74. left:50%;
  75. margin-top:-100px;
  76. margin-left:-100px;
  77. transition:1s;
  78. background-position:50% 100%;
  79. opacity:0;
  80. transition-delay:9999999999s;
  81. z-index:10;
  82. }
  83.  
  84. body:hover #backgroundball{
  85. width:90%;
  86. height:180%;
  87. margin-top:-30%;
  88. margin-left:-45%;
  89. transition-delay:2s;
  90. opacity:.8;
  91. }
  92.  
  93. #image{
  94. background-image:url(https://media.discordapp.net/attachments/306938609976606720/337775557435588609/2.png?width=355&height=468);
  95. width:600px;
  96. height:600px;
  97. background-size:contain;
  98. background-repeat:no-repeat;
  99. z-index:11;
  100. position:absolute;
  101. top:50%;
  102. left:50%;
  103. margin-top:-250px;
  104. margin-left:-800px;
  105. opacity:0;
  106. transition:3s;
  107. transition-delay:99999999s;
  108. }
  109.  
  110. body:hover #image{
  111. margin-left:-600px;
  112. opacity:1;
  113. transition-delay:3s;
  114. }
  115.  
  116. #box{
  117. width:450px;
  118. height:150px;
  119. background: linear-gradient(white, transparent) ;
  120. opacity:0.9 ;
  121. position:absolute;
  122. top:50%;
  123. left:50%;
  124. margin-top:140px;
  125. margin-left:-350px;
  126. z-index:12;
  127. opacity:0;
  128. transition:1s;
  129. transition-delay:9999999999s;
  130. }
  131.  
  132. body:hover #box{
  133. opacity:1;
  134. transition-delay:5.5s;
  135. }
  136.  
  137. .text{
  138. width:430px;
  139. height:130px;
  140. padding:10px;
  141. color:#000;
  142. font-family: 'Cinzel Decorative', cursive;
  143. font-weight:900;
  144. font-size:14pt;
  145. }
  146.  
  147. p{
  148. width: 430px;
  149. animation: type 2s 6s steps(60, end);
  150. overflow:hidden;
  151. white-space: nowrap;
  152. margin: 0px 0 0 0px;
  153. }
  154.  
  155. p:nth-child(2){
  156. animation: type2 4s 6s steps(60, end);
  157. }
  158.  
  159. p:nth-child(3){
  160. animation: type3 6.5s 6s steps(60, end);
  161. }
  162.  
  163. p:nth-child(4){
  164. animation: type4 10.5s 6s steps(60, end);
  165. }
  166.  
  167. @keyframes type{
  168. from { width: 0; }
  169. }
  170.  
  171. @keyframes type2{
  172. 0%{width: 0; }
  173. 40%{width: 0; }
  174. 100%{ width: 100%; }
  175. }
  176.  
  177. @keyframes type3{
  178. 0%{width: 0; }
  179. 60%{width: 0; }
  180. 100%{ width: 100%; }
  181. }
  182. @keyframes type4{
  183. 0%{width: 0; }
  184. 60%{width: 0; }
  185. 100%{ width: 100%; }
  186. }
  187. #name{
  188. width:450px;
  189. height:45px;
  190. background:linear-gradient(to right, transparent, white, transparent);
  191. position:absolute;
  192. margin-top:-60px;
  193. }
  194.  
  195. .nametext {
  196. font-family: 'Cinzel Decorative', cursive;
  197. font-size:25pt;
  198. font-weight:900;
  199. text-align:center;
  200. background: url('https://68.media.tumblr.com/0fad60580945f2b76c24d4dcc1927f5e/tumblr_nsy6zu5y0o1ru72gvo1_500.gif') no-repeat;
  201. background-size:100%;
  202. background-position:center;
  203. -webkit-background-clip: text;
  204. -webkit-text-fill-color: transparent;
  205.  
  206. }
  207.  
  208. .arrow-up a{
  209. width: 0;
  210. height: 0;
  211. border-top: 15px solid transparent;
  212. border-left: 15px solid yellow;
  213.  
  214. border-bottom: 15px solid transparent;
  215. top:50%;
  216. left:50%;
  217. position:absolute;
  218. margin-top:50px;
  219. margin-left:200px;
  220. display:inline-block;
  221. animation: blink 1s infinite linear;
  222. z-index:13;
  223. }
  224.  
  225. @keyframes blink{
  226. to{opacity: .0;}
  227. }
  228.  
  229. .arrow-up:target {
  230. opacity:0;
  231. transition:1s;
  232.  
  233. }
  234.  
  235.  
  236.  
  237.  
  238. .demo-dot {
  239.  
  240. animation: xAxis 7s infinite ;
  241. position:absolute;
  242. top:90%;
  243. left:10%;
  244. }
  245.  
  246. .demo-dot::after {
  247. content: '';
  248. display: block;
  249. width: 20px;
  250. height: 20px;
  251. border-radius: 50%;
  252. background-color: #fff;
  253. animation: yAxis 2.5s infinite;
  254. box-shadow: 1px 1px 100px 30px #0ff;
  255. }
  256.  
  257. .p-1{
  258. animation-duration:4s;
  259. top:30%;
  260. }
  261.  
  262. .p-1::after{
  263. animation-duration:10s;
  264. }
  265.  
  266. .p-2{
  267. animation-duration:10s;
  268. top:70%;
  269. left:30%;
  270. }
  271.  
  272. .p-2::after{
  273. animation-duration:2s;
  274. animation-direction: linear;
  275. }
  276.  
  277.  
  278. .p-3{
  279. animation-duration:2s;
  280. top:10%;
  281. left:30%;
  282. animation-direction: alternate;
  283. }
  284.  
  285. .p-3::after{
  286. animation-duration:5s;
  287. }
  288.  
  289. .p-4{
  290. animation-duration:5s;
  291. top:20%;
  292. left:70%;
  293. animation-direction: alternate;
  294. }
  295.  
  296. .p-4::after{
  297. animation-duration:3s;
  298. animation-direction: alternate;
  299. }
  300.  
  301. .p-5{
  302. animation-duration:20s;
  303. top:50%;
  304. left:60%;
  305. }
  306.  
  307. .p-5::after{
  308. animation-duration:10s;
  309. animation-direction: alternate;
  310. }
  311.  
  312.  
  313. .p-6{
  314. animation-duration:7s;
  315. top:80%;
  316. left:40%;
  317.  
  318. }
  319.  
  320. .p-6::after{
  321. animation-duration:6s;
  322.  
  323. }
  324.  
  325. .p-7{
  326. animation-duration:2.5s;
  327. top:40%;
  328. left:50%;
  329. animation-direction: linear;
  330. }
  331.  
  332. .p-7::after{
  333. animation-duration:3s;
  334. animation-direction: alternate;
  335. }
  336.  
  337. .p-8{
  338. animation-duration:15s;
  339. top:90%;
  340. left:70%;
  341.  
  342. }
  343.  
  344. .p-8::after{
  345. animation-duration:15s;
  346.  
  347. }
  348.  
  349. .p-9{
  350. animation-duration:6s;
  351. top:60%;
  352. left:0%;
  353.  
  354. }
  355.  
  356. .p-9::after{
  357. animation-duration:3.5s;
  358.  
  359. }
  360.  
  361. .p-10{
  362. animation-duration:8s;
  363. top:50%;
  364. left:90%;
  365.  
  366. }
  367.  
  368. .p-10::after{
  369. animation-duration:10s;
  370. animation-direction: alternate;
  371. }
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378. @-webkit-keyframes yAxis {
  379. 50% {
  380.  
  381. animation-timing-function: cubic-bezier(0.02, 0.01, 0.21, 1);
  382.  
  383. transform: translateY(0px);
  384. }
  385. }
  386.  
  387. @keyframes yAxis {
  388. 50% {
  389.  
  390. animation-timing-function: cubic-bezier(0.02, 0.01, 0.21, 1);
  391.  
  392. transform: translateY(-150px);
  393. }
  394. }
  395.  
  396. @-webkit-keyframes xAxis {
  397. 50% {
  398.  
  399. animation-timing-function: cubic-bezier(0.3, 0.27, 0.07, 1.64);
  400.  
  401. transform: translateX(100px);
  402. }
  403. }
  404.  
  405. @keyframes xAxis {
  406. 50% {
  407. animation-timing-function: cubic-bezier(0.3, 0.27, 0.07, 1.64);
  408. transform: translateX(300px);
  409. }
  410. }
  411.  
  412. </style>
  413.  
  414. <div id="ball"></div>
  415. <div id="image"></div>
  416. <div id="box">
  417. <div id="name">
  418. <div class="nametext">Titania</div>
  419. </div>
  420. <div class="text"><p>If we shadows have offended,</p>
  421. <p>Think but this, and all is mended </p>
  422. <p>Give me your hands if we be friends,</p>
  423. <p>And Titania shall restore amends.</p>
  424.  
  425. </div>
  426. <div class="arrow-up"><a href="#arrow-up"></a></div>
  427. </div>
  428.  
  429. <div id="backgroundball">
  430. </div>
  431. <div class="demo-dot"></div>
  432. <div class="demo-dot p-1"></div>
  433. <div class="demo-dot p-2"></div>
  434. <div class="demo-dot p-3"></div>
  435. <div class="demo-dot p-4"></div>
  436. <div class="demo-dot p-5"></div>
  437. <div class="demo-dot p-6"></div>
  438. <div class="demo-dot p-7"></div>
  439. <div class="demo-dot p-8"></div>
  440. <div class="demo-dot p-9"></div>
  441. <div class="demo-dot p-10"></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement