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

Fénycsíkból kibomló

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

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

    <div class="we-light-bar"></div>

    <div class="we-light-content">

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

        <strong>
            Fényből kibomló elem
        </strong>

        <small>
            Látványos maszkos megjelenés
        </small>

    </div>

</div>
CSS
.we-entry-light-reveal {

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

    margin: 60px auto;

    position: relative;

    overflow: hidden;

    background: #0b1014;

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

    color: #f2f4f0;

    font-family: Arial, sans-serif;

    clip-path: inset(0 50% 0 50% round 18px);

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


.we-light-content {

    padding: 38px 40px;

    opacity: 0;

    transform: scale(.94);

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


.we-light-bar {

    position: absolute;

    z-index: 3;

    left: 50%;
    top: 0;

    width: 2px;
    height: 100%;

    background: #8ee8d4;

    box-shadow:
        0 0 12px rgba(142,240,213,.9),
        0 0 35px rgba(142,240,213,.5);

    transform: translateX(-50%);

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


.we-entry-light-reveal .we-entry-label {

    display: block;

    margin-bottom: 12px;

    color: #8ee8d4;

    font-size: 11px;

    letter-spacing: .18em;

    text-transform: uppercase;
}


.we-entry-light-reveal strong {

    display: block;

    margin-bottom: 8px;

    font-size: 28px;

    font-weight: 400;
}


.we-entry-light-reveal small {

    color: #87939a;

    font-size: 13px;
}


@keyframes weLightReveal {

    0% {

        clip-path:
            inset(0 50% 0 50% round 18px);

    }

    100% {

        clip-path:
            inset(0 0 0 0 round 18px);

    }

}


@keyframes weLightBar {

    0% {

        height: 100%;

        opacity: 1;

    }

    70% {

        height: 100%;

        opacity: 1;

    }

    100% {

        height: 0%;

        opacity: 0;

    }

}


@keyframes weLightContent {

    0% {

        opacity: 0;

        transform: scale(.94);

    }

    60% {

        opacity: 1;

        transform: scale(1.015);

    }

    100% {

        opacity: 1;

        transform: scale(1);

    }

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