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

Felfelé felúszás + finom elmosódás

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

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

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

    <strong>
        Fókuszba kerülő elem
    </strong>

    <small>
        Finom elmosódásból éles megjelenés
    </small>

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

    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;

    filter: blur(10px);

    transform: translateY(65px);

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


.we-entry-blur::after {

    content: "";

    position: absolute;

    left: 40px;
    right: 40px;
    bottom: 18px;

    height: 1px;

    background: rgba(142,240,213,.22);

    transform: scaleX(0);

    transform-origin: left;

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


.we-entry-blur .we-entry-label {

    display: block;

    margin-bottom: 12px;

    color: #8ee8d4;

    font-size: 11px;

    letter-spacing: .18em;

    text-transform: uppercase;
}


.we-entry-blur strong {

    display: block;

    margin-bottom: 8px;

    font-size: 28px;

    font-weight: 400;
}


.we-entry-blur small {

    color: #87939a;

    font-size: 13px;
}


@keyframes weBlurEntry {

    0% {

        opacity: 0;

        filter: blur(10px);

        transform: translateY(65px);

    }

    60% {

        opacity: 1;

        filter: blur(2px);

        transform: translateY(-4px);

    }

    100% {

        opacity: 1;

        filter: blur(0);

        transform: translateY(0);

    }

}


@keyframes weBlurLine {

    0% {

        transform: scaleX(0);

    }

    100% {

        transform: scaleX(1);

    }

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