Slam a sliding door
Close it firmlySlides in from 120% to the left and stops.
- Duration
- 0.22s
- Repeats
- No
- Easing
- cubic-bezier(.2,.8,.2,1)
- Animates
- Position · Opacity translate opacity
Show CSS
@keyframes onoma-pisha {
0% { transform: translate(-120%, 0%); opacity: 0; }
40% { transform: translate(-72%, 0%); opacity: 1; }
100% { transform: translate(0%, 0%); opacity: 1; }
}
.onoma-pisha {
animation: onoma-pisha 0.22s cubic-bezier(.2,.8,.2,1) both;
}
/* Reduced motion: only fade in */
@keyframes onoma-pisha-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
.onoma-pisha { animation: onoma-pisha-fade 0.2s ease-out both; }
}