Belépő animációk
Körből kibomló
Élő előnézet – az animáció teljes méretben.
Élő előnézet
HTML · CSS · JS
<div class="we-entry-circle">
<div class="we-circle-glow"></div>
<div class="we-circle-content">
<span class="we-entry-label">
WebElements
</span>
<strong>
Pontból kibomló elem
</strong>
<small>
Körkörös terjedés és finom megjelenés
</small>
</div>
</div>
.we-entry-circle {
width: 100%;
max-width: 440px;
height: 190px;
margin: 60px auto;
position: relative;
overflow: hidden;
background: #0b1014;
border: 1px solid rgba(142,240,213,.22);
border-radius: 18px;
color: #f2f4f0;
font-family: Arial, sans-serif;
}
.we-circle-glow {
position: absolute;
left: 50%;
top: 50%;
width: 20px;
height: 20px;
border-radius: 50%;
background: #8ee8d4;
box-shadow:
0 0 18px rgba(142,240,213,.9),
0 0 50px rgba(142,240,213,.55);
transform:
translate(-50%, -50%)
scale(0);
animation:
weCircleExpand
1.25s
cubic-bezier(.22,1,.36,1)
.1s
forwards;
}
.we-circle-content {
position: absolute;
inset: 0;
padding: 38px 40px;
opacity: 0;
transform: scale(.92);
animation:
weCircleContent
.9s
cubic-bezier(.22,1,.36,1)
.55s
forwards;
}
.we-entry-circle .we-entry-label {
display: block;
margin-bottom: 12px;
color: #8ee8d4;
font-size: 11px;
letter-spacing: .18em;
text-transform: uppercase;
}
.we-entry-circle strong {
display: block;
margin-bottom: 8px;
font-size: 28px;
font-weight: 400;
}
.we-entry-circle small {
color: #87939a;
font-size: 13px;
}
@keyframes weCircleExpand {
0% {
transform:
translate(-50%, -50%)
scale(0);
opacity: 1;
}
55% {
transform:
translate(-50%, -50%)
scale(18);
opacity: .8;
}
100% {
transform:
translate(-50%, -50%)
scale(35);
opacity: 0;
}
}
@keyframes weCircleContent {
0% {
opacity: 0;
transform: scale(.92);
}
60% {
opacity: 1;
transform: scale(1.015);
}
100% {
opacity: 1;
transform: scale(1);
}
}
Ehhez az animációhoz nincs külön JavaScript.