- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>Animation delay: animation-delay, step 3</title>
<meta charset="utf-8">
<link rel="stylesheet" href="epoch2.css">
<link rel="stylesheet" href="style.css">
</head>
<body class="mechanical">
<div class="alarm-clock">
<span class="bell"></span>
<span class="arrow-small"></span>
</div>
</body>
</html>
CSS
.bell {
animation-name: ding;
animation-duration: 1s;
}
.arrow-small {
animation-name: rotate;
animation-duration: 1s;
}
@keyframes rotate {
to {
transform: rotate(360deg);
}
}
@keyframes ding {
33% {
transform: translateX(-15px);
}
66% {
transform: translateX(15px);
}
}
You’ve gone to a different page
Goalscompleted
0
Set the following animation parameters to the bell .bell
:
- start delay of
1s
, - duration of
100ms
, - animation cycles:
10
.
Comments