Belépő animációk
Oldalról becsúszás + nyújtás
Élő előnézet – az animáció teljes méretben.
Élő előnézet
HTML · CSS · JS
<div class="we-entry-stretch">
<span class="we-entry-label">
WebElements
</span>
<strong>
Dinamikusan becsúszó elem
</strong>
<small>
Oldalirányú mozgás és finom nyújtás
</small>
</div>
.we-entry-stretch {
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:
translateX(-90px)
scaleX(.82);
animation:
weStretchEntry
1.15s
cubic-bezier(.22,1,.36,1)
.1s
forwards;
}
.we-entry-stretch::after {
content: "";
position: absolute;
right: 30px;
top: 50%;
width: 4px;
height: 44px;
background: #8ee8d4;
transform:
translateY(-50%)
scaleY(0);
transform-origin: center;
opacity: .75;
animation:
weStretchMark
.75s
cubic-bezier(.22,1,.36,1)
.55s
forwards;
}
.we-entry-stretch .we-entry-label {
display: block;
margin-bottom: 12px;
color: #8ee8d4;
font-size: 11px;
letter-spacing: .18em;
text-transform: uppercase;
}
.we-entry-stretch strong {
display: block;
margin-bottom: 8px;
font-size: 28px;
font-weight: 400;
}
.we-entry-stretch small {
color: #87939a;
font-size: 13px;
}
@keyframes weStretchEntry {
0% {
opacity: 0;
transform:
translateX(-90px)
scaleX(.82);
}
60% {
opacity: 1;
transform:
translateX(8px)
scaleX(1.04);
}
100% {
opacity: 1;
transform:
translateX(0)
scaleX(1);
}
}
@keyframes weStretchMark {
0% {
opacity: 0;
transform:
translateY(-50%)
scaleY(0);
}
100% {
opacity: 1;
transform:
translateY(-50%)
scaleY(1);
}
}
Ehhez az animációhoz nincs külön JavaScript.