Advertisement
cornetespoir

Redirect Page #1 Day/Night

Jan 27th, 2016
705
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.99 KB | None | 0 0
  1. <!--
  2. // day and night
  3.  
  4. redirect page by espoirthemes //
  5.  
  6. +don't move the credit. there's no reason to on this page.
  7. +customize the colors as much as you'd like, but don't edit much of the actual css. The animations are easy to mess up.
  8.  
  9. auto redirect tutorial by oddhour
  10. -->
  11.  
  12.  
  13.  
  14. <html>
  15. <head>
  16.  
  17. <link href='https://fonts.googleapis.com/css?family=Covered+By+Your+Grace' rel='stylesheet' type='text/css'>
  18.  
  19. <title>{Title}</title>
  20. <link rel="shortcut icon" href="{Favicon}">
  21. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  22. <meta name="color:night background" content="#0E2430" />
  23. <meta name="color:day background" content="#76D3DE" />
  24. <meta name="color:text" content="#fff" />
  25. <meta name="color:links" content="#fff" />
  26. <meta name="color:link hover" content="#0E2430" />
  27.  
  28. <meta name="if:auto redirect" content="" />
  29. <meta name="text:old url" content="eggpreviews" />
  30. <meta name="text:new url" content="espoirthemes" />
  31.  
  32.  
  33.  
  34. </head>
  35.  
  36. <style type="text/css">
  37. .tmblr-iframe.tmblr-iframe--desktop-loggedin-controls.iframe-controls--desktop{display:none;}
  38. body{
  39. background:{color:night background};
  40. color:{color:text};
  41. font-family:Covered By Your Grace;
  42. font-size:24px;
  43. /*please don't touch this*/
  44. animation-name:color;
  45. animation-duration: 10s;
  46. animation-fill-mode:forwards;
  47. animation-iteration-count: 1; animation-delay: 4s;}
  48.  
  49.  
  50. a{color:{color:links}; /*link color */
  51. text-decoration:none;
  52. }
  53. a:hover{color:{color:link hover};} /*link hover */
  54.  
  55. @keyframes color{
  56. to{background:{color:day background};} /*day background color, a lighter color */
  57. }
  58.  
  59.  
  60.  
  61. #container{margin-left:500px; margin-top:200px; position:fixed; }
  62.  
  63. #sun{ margin-left:230px; width:90px; height:90px;border-radius:100%; background:rgba(255,241,12, 1); position:fixed; box-shadow: 0px 0px 6px 4px rgba(255,241,58, .2);
  64.  
  65. opacity:0;
  66. animation-name: sun; transform-origin: -20vmin 5vmin;
  67. animation-duration: 8s; animation-fill-mode:forwards;
  68. animation-iteration-count: 1; animation-delay: 4.2s;
  69. }
  70.  
  71. #moon { margin-left:-120px;width: 90px; height: 90px; border-radius: 50%;
  72. box-shadow: -15px 15px 0 0 white;
  73.  
  74. animation-name: moon; transform-origin: 36vmin 5vmin; position:fixed;
  75. animation-duration: 8s; animation-fill-mode:forwards;
  76. animation-iteration-count: 1; animation-delay: 4s; }
  77.  
  78. @keyframes moon {
  79. to {
  80. transform: rotate(1turn); opacity:0;
  81. }
  82.  
  83. }
  84. @keyframes sun {
  85. to {
  86. transform: rotate(1turn); opacity:1;
  87. }
  88.  
  89. }
  90. #old{text-align:center; animation-name: old; transform-origin: 40vmin 5vmin; position:relative;
  91. animation-duration: 8s; animation-fill-mode:forwards;
  92. animation-iteration-count: 1; }
  93. #new{ animation-name: new; transform-origin: 40vmin 5vmin; position:relative; text-align:center;
  94. animation-duration: 8s; animation-fill-mode:forwards;
  95. animation-iteration-count: 1; animation-delay: 6s; opacity:0;}
  96.  
  97. @keyframes old {
  98. to { opacity:0;}
  99. }
  100. @keyframes new {
  101. to { opacity:1;}
  102.  
  103. }
  104.  
  105. #credit { position:fixed; bottom:6px; right:6px; display:block; width: 16px; height: 18px; background-color: white; -webkit-border-radius: 63px 63px 63px 63px / 108px 108px 72px 72px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;}
  106. </style>
  107.  
  108. <body>
  109. {block:ifautoredirect}
  110. <script>
  111. setTimeout( redirectTumblr, 12000 );
  112.  
  113. function redirectTumblr() {
  114. location.replace('http://{text:new url}.tumblr.com' + location.pathname);
  115. }
  116. </script>
  117. {/block:ifautoredirect}
  118. <div id="container">
  119.  
  120. <div id="old">{text:old url} </div>
  121.  
  122. <div id="new">
  123. is now at
  124. <a href="http://{text:new url}.tumblr.com">{text:new url} </a> <br>{block:ifautoredirect}<small>redirecting...</small>{/block:ifautoredirect}</div>
  125.  
  126.  
  127. <!--don't erase/touch any of this -->
  128. <div id="sun"></div>
  129. <div id="moon"></div></div>
  130. <a href="http://espoirthemes.tumblr.com" title="credit"><div id="credit"></div></a>
  131. </body>
  132. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement