CSS/Eigenschaften/animation-timeline
Aus SELFHTML-Wiki
CSS | Eigenschaften
Die Eigenschaft animation-timeline legt die Zeitleiste fest, die zur Steuerung des Fortschritts einer CSS-Animation verwendet wird.
- Erlaubte Werte
none
:auto
:- scroll()
- view()
-
<dashed-ident>
: Identifizieren einer benannten Zeitleiste, die zuvor mit der scroll-timeline oder view-timeline deklariert wurde.
- Vererbung steuernde Werte
inherit
,initial
,unset
undrevert
- Standardwert
auto
- anwendbar auf
- Vererbung
nein
- animierbar
nein
Beispiel
#container {
height: 300px;
overflow-y: scroll;
scroll-timeline-name: --square-timeline;
position: relative;
}
#square {
background-color: deeppink;
width: 100px;
height: 100px;
margin-top: 100px;
animation-name: rotateAnimation;
animation-duration: 1ms; /* Firefox requires this to apply the animation */
animation-direction: alternate;
animation-timeline: --square-timeline;
position: absolute;
bottom: 0;
}
@keyframes rotateAnimation {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
Siehe auch
Weblinks
- CSSWG: animation-timeline CSS Animations Level 2
- MDN: animation-timeline
Liste der CSS-Eigenschaften
- Animationen
- animation
- offset
- offset-anchor
- offset-distance
- offset-path (ehem. motion-path)
- offset-rotate
- transition
- will-change
- Abstände
- Benutzeroberfläche
- Container
- generierter Inhalt
- Größenangaben
- Box-Ausrichtung
- Flexbox Layout
- Grid Layout
- Hintergründe
- Listen
- Tabellen
- Positionierung und Anzeige
- Scroll Snap
- Rahmen und Schatten
- Schriftformatierung
- Textformatierung
- Textausrichtung
- Umbruchsteuerung
- Transformationen