- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>Animation-timing-function, step 3</title>
<meta charset="utf-8">
<link rel="stylesheet" href="epoch4.css">
<link rel="stylesheet" href="style.css">
</head>
<body class="technologic">
<div class="belt">
<span class="robot warrior"></span>
</div>
<div class="belt">
<span class="robot constructor"></span>
</div>
</body>
</html>
CSS
.robot {
animation-name: move;
animation-duration: 3s;
animation-fill-mode: forwards;
}
@keyframes move {
to {
left: 400px;
}
}
Goalscompleted
- Assign an animation form
cubic-bezier(0, 0, 1, 1)
to the robots.robot
, - then replace it with
cubic-bezier(0.785, 0.135, 0.15, 0.86)
just for.constructor
, - then replace it with
cubic-bezier(0.175, 0.885, 0.32, 1)
.