Page Cross-Fade
motionKomplexität: anspruchsvollPerformance-Risiko: niedrig
Seitenübergang: opacity 0 → 1, 240 ms, cubic-bezier(0.2, 0, 0, 1)
@keyframes motion-page-cross-fade-kf {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.motion-page-cross-fade {
animation: motion-page-cross-fade-kf 240ms cubic-bezier(0.2, 0, 0, 1) 0ms both;
}
@keyframes motion-page-cross-fade-kf-reduced {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@media (prefers-reduced-motion: reduce) {
.motion-page-cross-fade {
animation-name: motion-page-cross-fade-kf-reduced;
animation-iteration-count: 1;
transform: none;
filter: none;
}
}- Fallback
- Ohne Animation Endzustand statisch anzeigen: opacity: 1;
- Barrierefreiheit
- Reduced Motion: Kein Übergang, direkter Wechsel.. Startet automatisch ohne Nutzeraktion.