animation.css 3.01 KB
.reveal {
    position: relative;
    transform: translateY(150px);
    opacity: 0;
    transition: 1s all ease;
}

.transition-1 {
    transition: 1.1s all ease;
}

.transition-2 {
    transition: 1.4s all ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

.animation-1 {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animation-2 {
    animation-duration: 1.1s;
    animation-fill-mode: both;
}

.animation-3 {
    animation-duration: 1.2s;
    animation-fill-mode: both;
}

.animation-4 {
    animation-duration: 1.3s;
    animation-fill-mode: both;
}

.animation-5 {
    animation-duration: 1.4s;
    animation-fill-mode: both;
}

.animation-ticket {
    animation-delay: 0.8s;
    animation-duration: 1.4s;
    animation-fill-mode: both;
}

.animation-5 {
    animation-duration: 1.5s;
    animation-fill-mode: both;
}

.fadeInBottom {
    animation-name: fadeInBottom;
}

img.vert-move {
    -webkit-animation: mover 1s infinite alternate;
    animation: mover 1s infinite alternate;
}

@-webkit-keyframes mover {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-10px);
    }
}

img.vert-move-2 {
    -webkit-animation: mover 2s infinite alternate;
    animation: mover 2s infinite alternate;
}

img.vert-move-3 {
    -webkit-animation: mover 3s infinite alternate;
    animation: mover 3s infinite alternate;
}

@keyframes fadeInBottom {
    from {
        opacity: 0;
        transform: translateY(150px);
    }
    to {
        opacity: 1;
    }
}

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

/* SLIDER */
.card {
    background: #fff;
    padding: 1.5rem;
    max-width: 35rem;
    border-radius: 0.5rem;
    position: absolute;
    pointer-events: none;
    opacity: 0;
    animation: animate 15s infinite linear;
    animation-delay: calc(3s * var(--delay));
}

.profile,
.header {
    display: flex;
    align-items: center;
}
.header {
    justify-content: space-between;
}
.profile {
    margin-bottom: 0.5rem;
}
.profile .img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    padding: 5px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.178);
}
.profile .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.profile .details {
    margin-left: 10px;
}
.op-star {
    color: #28223f;
    font-size: 1.1rem;
}

/* .outer:hover .card {
    animation-play-state: paused;
} */
.cards .card:last-child {
    animation-delay: calc(-3s * var(--delay));
}

@keyframes animate {
    0% {
        opacity: 0;
        transform: translateY(100%) scale(0.5);
    }
    5%,
    20% {
        opacity: 0.4;
        transform: translateY(100%) scale(0.7);
    }
    25%,
    40% {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0%) scale(1);
    }
    45%,
    60% {
        opacity: 0.4;
        transform: translateY(-100%) scale(0.7);
    }
    65%,
    100% {
        opacity: 0;
        transform: translateY(-100%) scale(0.5);
    }
}