- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>Fireball training</title>
<meta charset="utf-8">
<link rel="stylesheet" href="world.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="world">
<div class="wizard">
<div class="fireball fireball-1"></div>
<div class="fireball fireball-2"></div>
<div class="fireball fireball-3"></div>
</div>
<div class="target target-right"></div>
<div class="target target-top-right"></div>
<div class="target target-top"></div>
</div>
</body>
</html>
CSS
.fireball-1 {
}
.fireball-2 {
}
.fireball-3 {
}
.wizard {
top: 244px;
left: 30px;
}
You’ve gone to a different page
Goalscompleted
0
- Use the
translateX
function to move.fireball-1
forward by310px
so that it hits the bottom right target. - Move
.fireball-2
vertically up190px
so that it hits the upper target. - At the same time throw the last ball,
.fireball-3
, forward290px
and up190px
so that it hits the upper right target.
Comments