- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>Animation play count: animation-iteration-count</title>
<meta charset="utf-8">
<link rel="stylesheet" href="epoch2.css">
<link rel="stylesheet" href="style.css">
</head>
<body class="mechanical">
<div class="clock">
<span class="arrow"></span>
</div>
</body>
</html>
CSS
@keyframes rotate {
0% {
transform: rotate(0deg);
}
50% {
transform: rotate(90deg);
}
100% {
transform: rotate(0deg);
}
}
You’ve gone to a different page
Goalscompleted
0
- Assign a
rotate
animation with a duration of2s
to the arrow.arrow
, - then set
2
for the number of animation playback cycles, - then change the play count to infinite.
Comments