Advertisement
Solingen

Untitled

Oct 7th, 2024
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 6.06 KB | None | 0 0
  1. html,
  2. body {
  3.   margin: 0;
  4.   height: 100%;
  5. }
  6.  
  7. /* ............................................................... */
  8. /* ............................................................... */
  9. /* ............................................................... */
  10. #retrobg {
  11.   position: relative;
  12.   overflow: hidden;
  13.   height: 100%;
  14.   color: #a3c;
  15.   background-color: #000;
  16. }
  17.  
  18. /* ............................................................... */
  19. #retrobg-sky {
  20.   position: absolute;
  21.   display: flex;
  22.   align-items: flex-end;
  23.   justify-content: center;
  24.   top: 0;
  25.   width: 100%;
  26.   height: 55%;
  27.   background: linear-gradient(#214 75%, #249);
  28. }
  29.  
  30. /* ............................................................... */
  31. #retrobg-sunWrap {
  32.   position: relative;
  33.   width: 40%;
  34.   margin-bottom: -15%;
  35. }
  36.  
  37. #retrobg-sun {
  38.   --glow-color: #d44;
  39.   padding-top: 100%;
  40.   border-radius: 50%;
  41.   background-image: linear-gradient(#fcdf11, #ff623f, #fe2085 50%);
  42.   box-shadow: 0 0 160px 80px var(--glow-color);
  43.   animation: 2s ease infinite alternate retrobg-sun-glow-anim;
  44. }
  45.  
  46. .retrobg-shutdown #retrobg-sun {
  47.   background-image: linear-gradient(#000, #000 40%);
  48.   --glow-color: #000;
  49. }
  50.  
  51. @keyframes retrobg-sun-glow-anim {
  52.   from {
  53.     box-shadow: 0 0 160px 80px var(--glow-color);
  54.   }
  55.   to {
  56.     box-shadow: 0 0 200px 95px var(--glow-color);
  57.   }
  58. }
  59. /* ............................................................... */
  60. #retrobg-stars {
  61.   position: absolute;
  62.   width: 100%;
  63.   height: 100%;
  64. }
  65.  
  66. .retrobg-star {
  67.   position: absolute;
  68.   border-radius: 50%;
  69.   width: 2px;
  70.   height: 2px;
  71.   background-color: #fff;
  72. }
  73.  
  74. /* ............................................................... */
  75. #retrobg-mountains {
  76.   position: absolute;
  77.   width: 100%;
  78.   height: 30%;
  79. }
  80.  
  81. .retrobg-mountain {
  82.   position: absolute;
  83.   width: 30%;
  84.   height: 100%;
  85.   background-image: linear-gradient(#000 70%, #111 85%, rgba(255, 255, 255, 0.0666666667));
  86. }
  87.  
  88. #retrobg-mountains-left {
  89.   left: 0;
  90.   clip-path: polygon(0% 100%, 0% 55%, 5% 60%, 10% 55%, 20% 50%, 25% 42%, 30% 38%, 33% 35%, 40% 45%, 50% 50%, 60% 70%, 70% 85%, 75% 82%, 80% 91%, 85% 90%, 90% 95%, 95% 98%, 100% 100%);
  91. }
  92.  
  93. #retrobg-mountains-right {
  94.   right: 0;
  95.   clip-path: polygon(0% 100%, 5% 95%, 10% 85%, 15% 87%, 20% 80%, 25% 78%, 30% 65%, 40% 70%, 50% 57%, 60% 53%, 67% 68%, 70% 70%, 75% 66%, 80% 55%, 90% 50%, 95% 60%, 100% 57%, 100% 100%);
  96. }
  97.  
  98. /* ............................................................... */
  99. #retrobg-cityWrap {
  100.   position: absolute;
  101.   width: 50%;
  102.   margin-left: -1%;
  103. }
  104.  
  105. #retrobg-city {
  106.   padding-top: 20%;
  107. }
  108.  
  109. .retrobg-building {
  110.   position: absolute;
  111.   width: 5%;
  112.   height: 100%;
  113.   bottom: 0;
  114.   border-radius: 4px 4px 0 0;
  115.   background-image: linear-gradient(0deg, rgba(17, 17, 34, 0), #112 30px, #000);
  116. }
  117.  
  118. .retrobg-building:nth-child(odd) {
  119.   background-image: linear-gradient(0deg, rgba(24, 24, 42, 0), #223 30px, #000);
  120. }
  121.  
  122. .retrobg-antenna::after {
  123.   content: "";
  124.   position: absolute;
  125.   left: 50%;
  126.   margin-left: calc(-1px - 5%);
  127.   bottom: 100%;
  128.   width: 10%;
  129.   min-width: 2px;
  130.   height: 33%;
  131.   background-color: #000;
  132. }
  133.  
  134. /* ............................................................... */
  135. #retrobg-ground {
  136.   position: absolute;
  137.   overflow: hidden;
  138.   width: 100%;
  139.   height: 45%;
  140.   bottom: 0;
  141.   border-top: 2px solid #bf578c;
  142.   background-color: #000;
  143. }
  144.  
  145. .retrobg-shutdown #retrobg-ground {
  146.   border-color: #000;
  147. }
  148.  
  149. #retrobg-groundShadow {
  150.   position: absolute;
  151.   top: 0;
  152.   width: 100%;
  153.   height: 100%;
  154.   background-image: linear-gradient(#000 0%, transparent);
  155. }
  156.  
  157. /* ............................................................... */
  158. #retrobg-linesWrap {
  159.   height: 100%;
  160.   perspective: 1000px;
  161.   perspective-origin: center top;
  162. }
  163.  
  164. #retrobg-lines {
  165.   position: absolute;
  166.   width: 100%;
  167.   height: 100%;
  168.   transform-origin: top center;
  169.   animation: 0.35s linear infinite retrobg-lines-anim;
  170. }
  171.  
  172. .retrobg-shutdown #retrobg-lines {
  173.   animation-duration: 5s;
  174. }
  175.  
  176. @keyframes retrobg-lines-anim {
  177.   from {
  178.     transform: rotateX(84deg) translateY(0);
  179.   }
  180.   to {
  181.     transform: rotateX(84deg) translateY(100px);
  182.   }
  183. }
  184. #retrobg-hlines,
  185. #retrobg-vlines {
  186.   position: absolute;
  187.   left: -400%;
  188.   width: 900%;
  189.   height: 500%;
  190. }
  191.  
  192. #retrobg-vlines {
  193.   display: flex;
  194.   justify-content: center;
  195. }
  196.  
  197. .retrobg-hline,
  198. .retrobg-vline {
  199.   width: 100%;
  200.   height: 100%;
  201.   background-color: currentColor;
  202. }
  203.  
  204. .retrobg-hline {
  205.   height: 3px;
  206. }
  207.  
  208. .retrobg-vline {
  209.   width: 3px;
  210. }
  211.  
  212. .retrobg-hline + .retrobg-hline {
  213.   margin-top: 98px;
  214. }
  215.  
  216. .retrobg-vline + .retrobg-vline {
  217.   margin-left: 48px;
  218. }
  219.  
  220. .move-button {
  221.   position: absolute;
  222.   bottom: 110%;
  223.   left: 40%;
  224.   padding: 10px 20px;
  225.   border: none;
  226.   background-color: rgba(0, 125, 215, 0.0);
  227.   background: linear-gradient(to right, darkblue, darkblue, purple, white, grey, black,darkblue, darkblue);
  228.   background-size: 400% 400%;
  229.   -webkit-background-clip: text;
  230.   -webkit-text-fill-color: transparent;
  231.   -webkit-animation: rainbow 20s ease infinite;
  232.   animation: rainbow 20s ease infinite;
  233.   font-size: 25px;
  234.   line-height: 25px;
  235.   border-radius: 5px;
  236.   cursor: pointer;
  237.   transition: transform 2s ease;
  238.   z-index: 10;
  239. }
  240.  
  241. .button {
  242.   position: absolute;
  243.   bottom: 110%;
  244.   left: 50%;
  245.   padding: 10px 20px;
  246.   border: none;
  247.   background-color: rgba(0, 125, 215, 0.0);
  248.   background: linear-gradient(to right, darkblue, darkblue, purple, white, grey, black,darkblue, darkblue);
  249.   background-size: 400% 400%;
  250.   -webkit-background-clip: text;
  251.   -webkit-text-fill-color: transparent;
  252.   -webkit-animation: rainbow 20s ease infinite;
  253.   animation: rainbow 20s ease infinite;
  254.   font-size: 25px;
  255.   line-height: 25px;
  256.   border-radius: 5px;
  257.   cursor: pointer;
  258.   transition: transform 2s ease;
  259.   z-index: 10;
  260. }
  261.  
  262. @-webkit-keyframes rainbow {
  263.   0% { background-position: 0% 50% }
  264.   50% { background-position: 100% 50% }
  265.   100% { background-position: 0% 50% }
  266. }
  267.  
  268. @keyframes rainbow {
  269.   0% { background-position: 0% 50% }
  270.   50% { background-position: 100% 50% }
  271.   100% { background-position: 0% 50% }
  272. }
  273.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement