-
Notifications
You must be signed in to change notification settings - Fork 1
/
car_animation.css
91 lines (75 loc) · 1.35 KB
/
car_animation.css
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
81
82
83
84
85
86
87
88
89
90
91
*{
margin: 0;
padding: 0;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
body{
background-color: black;
overflow: hidden;
}
ul li{
color: white !important;
}
nav{
margin: 0px 30px 0px 30px;
animation: nav 1.5s ease-in-out;
}
@keyframes nav{
0%{
transform: translateY(-100%);
}
}
.content {
height: 80vh;
z-index: 1;
animation: content 2s ease-in-out;
}
@keyframes content{
0%{
opacity: 0;
transform: translateX(-50%);
}
}
.image img{
width: 100vh;
animation: car 4s ease-in-out;
margin-left: 8rem;
}
@keyframes car
{
0%{
transform: translateX(100%);
}
100%{
transform: translateX(-220%);
}
}
@media screen and (max-width:1200px) {
.image img{
position: relative;
top: -9rem;
right: -14rem;
}
.content{
display: flex;
align-items: center;
width: 100%;
}
.image img{
width: 100%;
}
}
@media screen and (max-width:576px) {
.image img{
position: relative;
top: -7rem;
right: 1rem;
width: 20rem;
}
.content{
text-align: center;
display: flex;
align-items: center;
width: 100%;
}
}