Belépő animációk
Alulról érkező + szétnyíló
Élő előnézet – az animáció teljes méretben.
Élő előnézet
HTML · CSS · JS
<div class="we-entry-expand">
<span class="we-entry-label">
WebElements
</span>
<strong>
Kinyíló tartalmi elem
</strong>
<small>
Felúszás és finom szétnyílás
</small>
</div>
.we-entry-expand {
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:
translateY(70px)
scaleX(.88);
animation:
weExpandEntry
1.15s
cubic-bezier(.22,1,.36,1)
.1s
forwards;
}
.we-entry-expand::after {
content: "";
position: absolute;
left: 50%;
bottom: 20px;
width: 55px;
height: 1px;
background: #8ee8d4;
transform:
translateX(-50%)
scaleX(0);
transform-origin: center;
opacity: .7;
animation:
weExpandLine
.8s
cubic-bezier(.22,1,.36,1)
.55s
forwards;
}
.we-entry-expand .we-entry-label {
display: block;
margin-bottom: 12px;
color: #8ee8d4;
font-size: 11px;
letter-spacing: .18em;
text-transform: uppercase;
}
.we-entry-expand strong {
display: block;
margin-bottom: 8px;
font-size: 28px;
font-weight: 400;
}
.we-entry-expand small {
color: #87939a;
font-size: 13px;
}
@keyframes weExpandEntry {
0% {
opacity: 0;
transform:
translateY(70px)
scaleX(.88);
}
65% {
opacity: 1;
transform:
translateY(-5px)
scaleX(1.02);
}
100% {
opacity: 1;
transform:
translateY(0)
scaleX(1);
}
}
@keyframes weExpandLine {
0% {
transform:
translateX(-50%)
scaleX(0);
}
100% {
transform:
translateX(-50%)
scaleX(1);
}
}
Ehhez az animációhoz nincs külön JavaScript.