﻿.masthead > figure {
    animation: imageAnimation 12s linear infinite 0s;
    backface-visibility: hidden;
    background-size: cover;
    background-position: center center;
    color: transparent;
    height: 650px;
    left: 0px;
    opacity: 0;
    position: absolute;
    top: 0px;
    width: 100%;
    z-index: 0;
}

    .masthead > figure:nth-child(1) {
        background-image: url('/img/pexels-photo.jpg');
    }

.masthead > figure:nth-child(2) {
    animation-delay: 6s;
    background-image: url('/img/Technology-Best-Wallpaper-23336.jpg');
}

.crossfade > figure:nth-child(3) {
    animation-delay: 12s;
    background-image: url('/img/p03gywjs.jpg');
}

/*.crossfade > figure:nth-child(4) {
    animation-delay: 18s;
    background-image: url('4.jpg');
}

.crossfade > figure:nth-child(5) {
    animation-delay: 24s;
    background-image: url('5.jpg');
}*/
@keyframes imageAnimation {
    0% {
        animation-timing-function: ease-in;
        opacity: 0;
    }

    25% {
        animation-timing-function: ease-out;
        opacity: 1;
    }

    50% {
        opacity: 1
    }

    75% {
        opacity: 0
    }

    100% {
        opacity: 0
    }
}