- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>@keyframes: from and to</title>
<meta charset="utf-8">
<link rel="stylesheet" href="epoch1.css">
<link rel="stylesheet" href="style.css">
</head>
<body class="ancient">
<div class="lift-top">
<div class="platform">
<span class="stone-wheel"></span>
</div>
</div>
</body>
</html>
CSS
.platform {
animation-name: lift-up;
animation-duration: 3s;
}
@keyframes lift-up {
}
You’ve gone to a different page
Goalscompleted
0
Create an at-rule called lift-up
containing some keyframes:
from
with atransform: translateY(0px)
transformation;50%
with atransform: translateY(-250px)
transformation;100%
with atransform: translateY(-300px)
transformation.
Comments