#fadePages {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    pointer-events: none;
    animation-duration: 400ms;
    animation-timing-function: ease-in-out;
    background-color: #f5f7f8;
}

@keyframes fadeOut {
    from { opacity: 1 }
      to { opacity: 0 }
}

@keyframes fadeIn {
    from { opacity: 0 }
      to { opacity: 1 }
}

#fadePages.fadeOut {
    opacity: 0;
    animation-name: fadeOut;
}

#fadePages.fadeIn {
    opacity: 1;
    animation-name: fadeIn;
}