Belépő animációk
Lágy zoom be
Élő előnézet – az animáció teljes méretben.
Élő előnézet
HTML · CSS · JS
<div class="we-entry-zoom">
<span class="we-entry-label">
WebElements
</span>
<strong>
Lágyan közeledő elem
</strong>
<small>
Finom zoom és fokozatos megjelenés
</small>
</div>
.we-entry-zoom {
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: scale(1.18);
animation:
weSoftZoom
1.15s
cubic-bezier(.22,1,.36,1)
.1s
forwards;
}
.we-entry-zoom::after {
content: "";
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
border-radius: 18px;
border: 1px solid rgba(142,240,213,.12);
transform: scale(.94);
opacity: 0;
animation:
weZoomFrame
1.15s
ease-out
.1s
forwards;
}
.we-entry-zoom .we-entry-label {
display: block;
margin-bottom: 12px;
color: #8ee8d4;
font-size: 11px;
letter-spacing: .18em;
text-transform: uppercase;
}
.we-entry-zoom strong {
display: block;
margin-bottom: 8px;
font-size: 28px;
font-weight: 400;
}
.we-entry-zoom small {
color: #87939a;
font-size: 13px;
}
@keyframes weSoftZoom {
0% {
opacity: 0;
transform: scale(1.18);
}
65% {
opacity: 1;
transform: scale(.985);
}
100% {
opacity: 1;
transform: scale(1);
}
}
@keyframes weZoomFrame {
0% {
opacity: 0;
transform: scale(.94);
}
65% {
opacity: .8;
transform: scale(1.01);
}
100% {
opacity: 1;
transform: scale(1);
}
}
Ehhez az animációhoz nincs külön JavaScript.