-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
80 lines (64 loc) · 1.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>City</title>
<style type="text/css">
/*images downloaded from the website br.freepik.com*/
body{
margin: 0;
padding: 0;
}
.background{
height: 100vh;
background: url('img/city.jpg');
background-position: bottom left;
animation: driving 15s linear infinite;
}
@keyframes driving {
from { background-position: bottom left; }
to {background-position: bottom right;}
}
.car {
position: absolute;
left: 200px;
bottom: -50px;
width: 200px;
}
.car2 {
position: absolute;
left: 950px;
bottom: -50px;
width: 200px;
}
.car3 {
position: absolute;
left: 500px;
bottom: -50px;
width: 200px;
}
.motorbike2 {
position: absolute;
left: 700px;
bottom: 55px;
width: 150px;
}
.motorbike {
position: absolute;
left: 80px;
bottom: 55px;
width: 150px;
}
</style>
</head>
<body>
<div class="background">
<img src="img/car.png" class="car">
<img src="img/motobike.png" class="motorbike">
<img src="img/car3.png" class="car3">
<img src="img/car2.png" class="car2">
<img src="img/moto.png" class="motorbike2">
</div>
</body>
</html>