- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>Complex animation, step 2</title>
<meta charset="utf-8">
<link rel="stylesheet" href="epoch1.css">
<link rel="stylesheet" href="style.css">
</head>
<body class="ancient">
<div class="lift-bottom">
<span class="stone-wheel"></span>
</div>
</body>
</html>
CSS
@keyframes rotate {
50% {
transform: rotate(360deg);
}
}
.stone-wheel {
animation-name: rotate;
animation-duration: 3s;
}
You’ve gone to a different page
Goalscompleted
0
- Create an animation called
move
and containing the following keyframes:50%
with abottom: 0px
property;100%
with abottom: -50px
property.
- Add a second
move
animation with a duration of6s
to the.stone-wheel
block.
Comments