Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //variables for colours
- $light-pink: #f694c1;
- $dark-pink: #ff70a6;
- $bg-overlay-color: rgba(0, 0, 0, 0.5);
- //animations
- /*code from:
- https://animista.net/play/attention/jello/jello-diagonal-1
- https://animista.net/play/text/flicker/text-flicker-in-glow
- */
- @keyframes jello-diagonal-1 {
- 0% {
- transform: skew(0deg, 0deg);
- }
- 30% {
- transform: skew(25deg, 25deg);
- }
- 40% {
- transform: skew(-15deg, -15deg);
- }
- 50% {
- transform: skew(15deg, 15deg);
- }
- 65% {
- transform: skew(-5deg, -5deg);
- }
- 75% {
- transform: skew(5deg, 5deg);
- }
- 100% {
- transform: skew(0deg, 0deg);
- }
- }
- @keyframes text-flicker-in-glow {
- 0% {
- opacity: 0;
- }
- 10% {
- opacity: 0;
- text-shadow: none;
- }
- 10.1% {
- opacity: 1;
- text-shadow: none;
- }
- 10.2% {
- opacity: 0;
- text-shadow: none;
- }
- 20% {
- opacity: 0;
- text-shadow: none;
- }
- 20.1% {
- opacity: 1;
- text-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
- }
- 20.6% {
- opacity: 0;
- text-shadow: none;
- }
- 30.1% {
- opacity: 1;
- text-shadow: 0 0 30px rgba(255, 255, 255, 0.45), 0 0 60px rgba(255, 255, 255, 0.25);
- }
- 55% {
- opacity: 1;
- text-shadow: 0 0 30px rgba(255, 255, 255, 0.45), 0 0 60px rgba(255, 255, 255, 0.25);
- }
- 57.1% {
- opacity: 1;
- text-shadow: 0 0 30px rgba(255, 255, 255, 0.55), 0 0 60px rgba(255, 255, 255, 0.35);
- }
- 65.1% {
- opacity: 1;
- 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);
- }
- 75% {
- opacity: 1;
- 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);
- }
- 100% {
- opacity: 1;
- 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);
- }
- }
- //body styling
- .error-page {
- position: relative;
- height: 100vh;
- background-color: #f7f7f7;
- overflow: hidden;
- display: flex;
- justify-content: center;
- align-items: center;
- text-align: center;
- &__content {
- z-index: 2;
- color: white;
- text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
- }
- &__heading {
- font-size: 10rem;
- animation: jello-diagonal-1 2s ease;
- color: $light-pink;
- transition: color 0.3s ease;
- }
- &__message {
- font-size: 2rem;
- margin-top: 1rem;
- color: white;
- animation: text-flicker-in-glow 5s ease-out;
- }
- &__link {
- margin-top: 2rem;
- display: inline-block;
- padding: 0.75rem 2rem;
- background-color: $dark-pink;
- color: white;
- text-decoration: none;
- font-size: 1.5rem;
- border-radius: 5px;
- transition: background-color 0.3s ease;
- &:hover {
- background-color: $light-pink;
- }
- }
- &__overlay {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-color: $bg-overlay-color;
- clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
- z-index: 1;
- }
- &__image {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- object-fit: cover;
- z-index: 0;
- filter: blur(5px);
- transform: scale(1.05);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement