21.03.2024, 07:51
(20.03.2024, 13:51)envoy schrieb: Kann ich im .element noch einen Parameter definieren, das nach jedem Step ein Zeit x stehen bleibt?
Nein, das musst du - wie du es schon gemacht hast - über die Keyframes lösen.
Du kannst aber das Ganze noch aufräumen:
Code:
@keyframes animation {
0%, 90% { top: 100px; left: 0px; }
10%, 20% { top: 100px; left: 200px; }
30%, 40% { top: 100px; left: 400px; }
50%, 60% { top: 100px; left: 600px; }
80% { top: 100px; left: 800px; }
}