Advertisement
thotfrnk

404error.css

Oct 27th, 2024 (edited)
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.10 KB | None | 0 0
  1. /*
  2. Animations
  3.  
  4. Code from:
  5.  
  6. https://animista.net/play/attention/jello/jello-diagonal-1
  7. https://animista.net/play/text/flicker/text-flicker-in-glow
  8.  
  9. */
  10.  
  11. @keyframes jello-diagonal-1 {
  12.   0% {
  13.     transform: skew(0deg, 0deg);
  14.   }
  15.   30% {
  16.     transform: skew(25deg, 25deg);
  17.   }
  18.   40% {
  19.     transform: skew(-15deg, -15deg);
  20.   }
  21.   50% {
  22.     transform: skew(15deg, 15deg);
  23.   }
  24.   65% {
  25.     transform: skew(-5deg, -5deg);
  26.   }
  27.   75% {
  28.     transform: skew(5deg, 5deg);
  29.   }
  30.   100% {
  31.     transform: skew(0deg, 0deg);
  32.   }
  33. }
  34. @keyframes text-flicker-in-glow {
  35.   0% {
  36.     opacity: 0;
  37.   }
  38.   10% {
  39.     opacity: 0;
  40.     text-shadow: none;
  41.   }
  42.   10.1% {
  43.     opacity: 1;
  44.     text-shadow: none;
  45.   }
  46.   10.2% {
  47.     opacity: 0;
  48.     text-shadow: none;
  49.   }
  50.   20% {
  51.     opacity: 0;
  52.     text-shadow: none;
  53.   }
  54.   20.1% {
  55.     opacity: 1;
  56.     text-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
  57.   }
  58.   20.6% {
  59.     opacity: 0;
  60.     text-shadow: none;
  61.   }
  62.   30.1% {
  63.     opacity: 1;
  64.     text-shadow: 0 0 30px rgba(255, 255, 255, 0.45), 0 0 60px rgba(255, 255, 255, 0.25);
  65.   }
  66.   55% {
  67.     opacity: 1;
  68.     text-shadow: 0 0 30px rgba(255, 255, 255, 0.45), 0 0 60px rgba(255, 255, 255, 0.25);
  69.   }
  70.   57.1% {
  71.     opacity: 1;
  72.     text-shadow: 0 0 30px rgba(255, 255, 255, 0.55), 0 0 60px rgba(255, 255, 255, 0.35);
  73.   }
  74.   65.1% {
  75.     opacity: 1;
  76.     text-shadow: 0 0 30px rgba(255, 255, 255, 0.55), 0 0 60px rgba(255, 255, 255, 0.35), 0 0 100px rgba(255, 255, 255, 0.1);
  77.   }
  78.   75% {
  79.     opacity: 1;
  80.     text-shadow: 0 0 30px rgba(255, 255, 255, 0.55), 0 0 60px rgba(255, 255, 255, 0.35), 0 0 100px rgba(255, 255, 255, 0.1);
  81.   }
  82.   100% {
  83.     opacity: 1;
  84.     text-shadow: 0 0 30px rgba(255, 255, 255, 0.6), 0 0 60px rgba(255, 255, 255, 0.45), 0 0 110px rgba(255, 255, 255, 0.25), 0 0 100px rgba(255, 255, 255, 0.1);
  85.   }
  86. }
  87.  
  88. /*body styling*/
  89.  
  90. .error-page {
  91.   position: relative;
  92.   height: 100vh;
  93.   background-color: #f7f7f7;
  94.   overflow: hidden;
  95.   display: flex;
  96.   justify-content: center;
  97.   align-items: center;
  98.   text-align: center;
  99. }
  100. .error-page__content {
  101.   z-index: 2;
  102.   color: white;
  103.   text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  104. }
  105. .error-page__heading {
  106.   font-size: 10rem;
  107.   animation: jello-diagonal-1 2s ease;
  108.   color: #f694c1;
  109.   transition: color 0.3s ease;
  110. }
  111. .error-page__message {
  112.   font-size: 2rem;
  113.   margin-top: 1rem;
  114.   color: white;
  115.   animation: text-flicker-in-glow 5s ease-out;
  116. }
  117. .error-page__link {
  118.   margin-top: 2rem;
  119.   display: inline-block;
  120.   padding: 0.75rem 2rem;
  121.   background-color: #ff70a6;
  122.   color: white;
  123.   text-decoration: none;
  124.   font-size: 1.5rem;
  125.   border-radius: 5px;
  126.   transition: background-color 0.3s ease;
  127. }
  128. .error-page__link:hover {
  129.   background-color: #f694c1;
  130. }
  131. .error-page__overlay {
  132.   position: absolute;
  133.   top: 0;
  134.   left: 0;
  135.   width: 100%;
  136.   height: 100%;
  137.   background-color: rgba(0, 0, 0, 0.5);
  138.   clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
  139.   z-index: 1;
  140. }
  141. .error-page__image {
  142.   position: absolute;
  143.   top: 0;
  144.   left: 0;
  145.   width: 100%;
  146.   height: 100%;
  147.   object-fit: cover;
  148.   z-index: 0;
  149.   filter: blur(5px);
  150.   transform: scale(1.05);
  151. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement