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

Függőleges redőnyként kibomló

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

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

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

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

        <strong>
            Új perspektíva
        </strong>

        <small>
            Függőleges redőnyként szétnyíló megjelenés
        </small>

    </div>

    <div class="we-blind we-blind-1"></div>
    <div class="we-blind we-blind-2"></div>
    <div class="we-blind we-blind-3"></div>
    <div class="we-blind we-blind-4"></div>
    <div class="we-blind we-blind-5"></div>

</div>
CSS
.we-entry-blinds {
    width: 100%;
    max-width: 440px;
    height: 190px;
    margin: 60px auto;
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(142,232,212,.12),
            transparent 55%
        ),
        #0b1014;

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

    color: #f2f4f0;
    font-family: Arial, sans-serif;
}


/* TARTALOM */

.we-blinds-content {
    position: absolute;
    inset: 0;
    z-index: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 35px 40px;

    opacity: 0;

    animation:
        weBlindsContent
        .7s
        cubic-bezier(.22,1,.36,1)
        1.05s forwards;
}

.we-entry-label {
    margin-bottom: 12px;

    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;

    color: #8ee8d4;
}

.we-blinds-content strong {
    font-size: 27px;
    font-weight: 500;
}

.we-blinds-content small {
    margin-top: 10px;

    font-size: 13px;
    color: rgba(242,244,240,.62);
}


/* REDŐNYLAMELLÁK */

.we-blind {
    position: absolute;
    top: 0;

    width: 20%;
    height: 100%;

    z-index: 3;

    background:
        linear-gradient(
            90deg,
            #080d10 0%,
            #182724 50%,
            #0a1113 100%
        );

    border-right: 1px solid rgba(142,232,212,.35);

    box-shadow:
        inset 0 0 20px rgba(0,0,0,.45),
        0 0 15px rgba(0,0,0,.3);
}


/* 1. lamella */

.we-blind-1 {
    left: 0;

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


/* 2. lamella */

.we-blind-2 {
    left: 20%;

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


/* 3. lamella */

.we-blind-3 {
    left: 40%;

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


/* 4. lamella */

.we-blind-4 {
    left: 60%;

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


/* 5. lamella */

.we-blind-5 {
    left: 80%;

    border-right: 0;

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


/* BAL OLDALI REDŐNYÖK */

@keyframes blindLeft {

    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-125%);
        opacity: 0;
    }

}


/* JOBB OLDALI REDŐNYÖK */

@keyframes blindRight {

    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(125%);
        opacity: 0;
    }

}


/* TARTALOM */

@keyframes weBlindsContent {

    0% {
        opacity: 0;
        transform: scale(.97);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }

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