.page-wrapper
    .circles-layer
        .circle.-white
        .circle.-red
        .circle.-white
        .circle.-red
    .numbers-layer
        .number 4
        .number 4
        .number 4
        .number 4
        .number 4
        .number 4
        .number 4
        .number 4
        .number.-with-shadow 0
        .number.-with-shadow 0
        .number.-with-shadow 0
        .number.-with-shadow 0
    .oops-message
        .test Opps... looks like You got lost
        a.button(href='') Try again
View Compiled
@use postcss-nested;

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white:    #FFFFFF;
    --red:      #FF3F3F;
    --dark-red: #AA2727;
    
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: calc( 14px + (25 - 14) * ((100vw - 400px) / ( 1200 - 400)));
}

body {
    background: var(--red);
}

.page-wrapper {
    position: relative;
    height: 90vh;
    width: 90vw;
    margin: 5vh 0 0 5vw;
    overflow: hidden;
    background: var(--red);
    box-shadow: 0 2rem 3rem var(--dark-red);
}

@keyframes circle-animation {
    0%   { transform: translateX(-50%) translateY(-50%) scale(0); }
    10%  { transform: translateX(-50%) translateY(-50%) scale(1); }
    100% { transform: translateX(-50%) translateY(-50%) scale(1); }
}

.circles-layer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    
    > .circle {
        position: absolute;
        top: 50%;
        left: 50%;
        height: 300vw;
        width: 300vw;
        transform: translateX(-50%) translateY(-50%);
        border-radius: 50%;
        animation: circle-animation 10s linear infinite;
        will-change: transform;
        
        &.-white {
            border: 30vw solid var(--white);
        }
        
        &.-red {
            border: 25vw solid var(--dark-red);
        }
        
        &:nth-of-type(2) {
            animation-delay: 100ms;
        }
        &:nth-of-type(3) {
            animation-delay: 150ms;
        }
        &:nth-of-type(4) {
            animation-delay: 200ms;
        }
    }
}

@keyframes number-animation {
    0%   { transform: scale(0);   opacity: 0; }
    30%  { transform: scale(0);   opacity: 0; }
    32%  { transform: scale(.95); opacity: 1; }
    35%  { transform: scale(1);   opacity: 1; }
    37%  { transform: scale(1);   opacity: 1; }
    40%  { transform: scale(0);   opacity: 0; }
    50%  { transform: scale(0);   opacity: 0; }
    52%  { transform: scale(.45); opacity: 1; }
    55%  { transform: scale(.5);  opacity: 1; }
    57%  { transform: scale(.5);  opacity: 1; }
    60%  { transform: scale(0);   opacity: 0; }
    70%  { transform: scale(0);   opacity: 0; }
    72%  { transform: scale(.75); opacity: 1; }
    75%  { transform: scale(.8);  opacity: 1; }
    77%  { transform: scale(.8);  opacity: 1; } 
    80%  { transform: scale(0);   opacity: 0; }
    100% { transform: scale(0);   opacity: 0; }
}

.numbers-layer {
    position: absolute;
    top: -1rem;
    left: -1rem;
    height: 100%;
    width: 100%;
    
    > .number {
        position: absolute;
        font-size: 10rem;
        color: var(--white);
        transform: scale(0);
        opacity: 0;
        font-weight: 200;
        animation: number-animation 10s linear infinite;
        will-change: transform, opacity;
        
        &.-with-shadow {
            text-shadow: 1rem 1rem var(--dark-red);
        }
        
        &:nth-of-type(1)  { top: 5%;  left: 5%;  animation-delay:  0;    }
        &:nth-of-type(2)  { top: 15%; left: 55%; animation-delay: 40ms; 
        font-size: 15rem; }
        &:nth-of-type(3)  { top: 25%; left: 15%; animation-delay: 80ms; }
        &:nth-of-type(4)  { top: 75%; left: 20%; animation-delay: 120ms; }
        &:nth-of-type(5)  { top: 25%; left: 75%; animation-delay: 160ms; 
        font-size: 6rem; }
        &:nth-of-type(6)  { top: 65%; left: 45%; animation-delay: 200ms; } 
        &:nth-of-type(7)  { top: 45%; left: 85%; animation-delay: 240ms; }
        &:nth-of-type(8)  { top: 10%; left: 85%; animation-delay: 280ms; }
        &:nth-of-type(9)  { top: 40%; left: 35%; animation-delay: 320ms; 
        font-size: 15rem; }
        &:nth-of-type(10) { top: 70%; left: 65%; animation-delay: 360ms; }
        &:nth-of-type(11) { top: 10%; left: 30%; animation-delay: 400ms; 
        font-size: 6rem; }
        &:nth-of-type(12) { top: 45%; left: 10%; animation-delay: 440ms; }
    }
}

.oops-message {
    position: absolute;
    width: 20rem;
    left: 50%;
    bottom: 2rem;
    margin-left: -10rem;
    font-weight: 400;
    text-align: center;
    color: var(--white);
    
    > .button {
        display: inline-block;
        margin-top: .5rem;
        background: var(--white);
        color: var(--red);
        padding: 0 2rem;
        line-height: 2rem;
        text-decoration: none;
        border-radius: 1rem;
        transition: all 120ms ease-in;
        
        &:hover,
        &:focus {
            background: var(--dark-red);
            color: var(--white);
        }
    }
}

External CSS

  1. https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:200,400

External JavaScript

This Pen doesn't use any external JavaScript resources.