Belépő animációk
Felülről érkező + finom lebegés
Élő előnézet – az animáció teljes méretben.
Élő előnézet
HTML · CSS · JS
<div class="we-entry-drop">
<span class="we-entry-label">
WebElements
</span>
<strong>
Felülről érkező elem
</strong>
<small>
Lágy esés és finom megállás
</small>
</div>
.we-entry-drop {
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(-80px);
animation:
weDropEntry
1.15s
cubic-bezier(.22,1,.36,1)
.1s
forwards;
}
.we-entry-drop::after {
content: "";
position: absolute;
left: 32px;
top: 28px;
width: 7px;
height: 7px;
background: #8ee8d4;
border-radius: 50%;
box-shadow:
0 0 16px rgba(142,240,213,.6);
opacity: 0;
animation:
weDropDot
.7s
ease-out
.55s
forwards;
}
.we-entry-drop .we-entry-label {
display: block;
margin-bottom: 12px;
color: #8ee8d4;
font-size: 11px;
letter-spacing: .18em;
text-transform: uppercase;
}
.we-entry-drop strong {
display: block;
margin-bottom: 8px;
font-size: 28px;
font-weight: 400;
}
.we-entry-drop small {
color: #87939a;
font-size: 13px;
}
@keyframes weDropEntry {
0% {
opacity: 0;
transform: translateY(-80px);
}
65% {
opacity: 1;
transform: translateY(6px);
}
82% {
transform: translateY(-2px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
@keyframes weDropDot {
0% {
opacity: 0;
transform: translateY(-12px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
Ehhez az animációhoz nincs külön JavaScript.