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

Balról beuúszás

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

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

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

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

    <small>
        Finom belépő animáció
    </small>

</div>
CSS
.we-entry-left {

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

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

    background: #0b1014;

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

    color: #f2f4f0;

    font-family: Arial, sans-serif;

    opacity: 0;

    transform:
        translateX(-90px);

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


.we-entry-left::after {

    content: "";

    position: absolute;

    width: 70px;
    height: 1px;

    background: #8ee8d4;

}


.we-entry-label {

    display: block;

    margin-bottom: 12px;

    color: #8ee8d4;

    font-size: 11px;

    letter-spacing: .18em;

    text-transform: uppercase;
}


.we-entry-left strong {

    display: block;

    margin-bottom: 8px;

    font-size: 28px;

    font-weight: 400;
}


.we-entry-left small {

    color: #87939a;

    font-size: 13px;
}


@keyframes weSlideFromLeft {

    0% {

        opacity: 0;

        transform:
            translateX(-90px);

    }

    100% {

        opacity: 1;

        transform:
            translateX(0);

    }

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