Belépő animációk
Balról érkező + enyhe forgás
Élő előnézet – az animáció teljes méretben.
Élő előnézet
HTML · CSS · JS
<div class="we-entry-slide-rotate">
<span class="we-entry-label">
WebElements
</span>
<strong>
Dinamikusan érkező elem
</strong>
<small>
Oldalirányú mozgás és finom forgás
</small>
</div>
.we-entry-slide-rotate {
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(-100px)
rotate(-4deg);
animation:
weSlideRotate
1.1s
cubic-bezier(.22,1,.36,1)
.1s
forwards;
}
.we-entry-slide-rotate::after {
content: "";
position: absolute;
right: 28px;
bottom: 24px;
width: 12px;
height: 12px;
border:
1px solid #8ee8d4;
transform: rotate(45deg);
opacity: 0;
animation:
weSlideRotateMark
.7s
ease-out
.65s
forwards;
}
.we-entry-slide-rotate .we-entry-label {
display: block;
margin-bottom: 12px;
color: #8ee8d4;
font-size: 11px;
letter-spacing: .18em;
text-transform: uppercase;
}
.we-entry-slide-rotate strong {
display: block;
margin-bottom: 8px;
font-size: 28px;
font-weight: 400;
}
.we-entry-slide-rotate small {
color: #87939a;
font-size: 13px;
}
@keyframes weSlideRotate {
0% {
opacity: 0;
transform:
translateX(-100px)
rotate(-4deg);
}
65% {
opacity: 1;
transform:
translateX(8px)
rotate(.8deg);
}
100% {
opacity: 1;
transform:
translateX(0)
rotate(0);
}
}
@keyframes weSlideRotateMark {
0% {
opacity: 0;
transform:
translateX(-15px)
rotate(45deg);
}
100% {
opacity: 1;
transform:
translateX(0)
rotate(45deg);
}
}
Ehhez az animációhoz nincs külön JavaScript.