Vissza az animációkhoz
Belépő animációk

Jobbról érkező + forgás

Élő előnézet – az animáció teljes méretben.

Élő előnézet
HTML · CSS · JS
HTML
<div class="we-entry-slide-rotate-right">

    <span class="we-entry-label">
        WebElements
    </span>

    <strong>
        Jobbról érkező elem
    </strong>

    <small>
        Oldalirányú mozgás és finom forgás
    </small>

</div>
CSS
.we-entry-slide-rotate-right {

    width: 100%;
    max-width: 440px;

    margin: 60px auto;
    padding: 38px 40px;

    position: relative;

    background: #0b1014;

    border: 1px solid rgba(142,240,213,.22);
    border-radius: 18px;

    color: #f2f4f0;

    font-family: Arial, sans-serif;

    opacity: 0;

    transform:
        translateX(100px)
        rotate(4deg);

    animation:
        weSlideRotateRight
        1.1s
        cubic-bezier(.22,1,.36,1)
        .1s
        forwards;
}


.we-entry-slide-rotate-right::after {

    content: "";

    position: absolute;

    left: 28px;
    bottom: 24px;

    width: 12px;
    height: 12px;

    border:
        1px solid #8ee8d4;

    transform: rotate(45deg);

    opacity: 0;

    animation:
        weSlideRotateRightMark
        .7s
        ease-out
        .65s
        forwards;
}


.we-entry-slide-rotate-right .we-entry-label {

    display: block;

    margin-bottom: 12px;

    color: #8ee8d4;

    font-size: 11px;

    letter-spacing: .18em;

    text-transform: uppercase;
}


.we-entry-slide-rotate-right strong {

    display: block;

    margin-bottom: 8px;

    font-size: 28px;

    font-weight: 400;
}


.we-entry-slide-rotate-right small {

    color: #87939a;

    font-size: 13px;
}


@keyframes weSlideRotateRight {

    0% {

        opacity: 0;

        transform:
            translateX(100px)
            rotate(4deg);

    }

    65% {

        opacity: 1;

        transform:
            translateX(-8px)
            rotate(-.8deg);

    }

    100% {

        opacity: 1;

        transform:
            translateX(0)
            rotate(0);

    }

}


@keyframes weSlideRotateRightMark {

    0% {

        opacity: 0;

        transform:
            translateX(15px)
            rotate(45deg);

    }

    100% {

        opacity: 1;

        transform:
            translateX(0)
            rotate(45deg);

    }

}
JavaScript
Ehhez az animációhoz nincs külön JavaScript.