-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcars.css
89 lines (80 loc) · 1.52 KB
/
cars.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
body{
text-align:center;
margin: 0;
padding: 0%;
font-family: fantasy;
background: aliceblue;
font-size: x-large;
}
header{
background-color:antiquewhite ;
padding: 20px;
}
.banner{
width:100%;
}
.banner-image{
width:100%
background-size cover;
background-position: center;
animation:banneranim 4s infinite;
}
@keyframes banneranim{
0% {background-image: url(banner2.jpg);}
50% {background-image: url(banner3.jpg);}
}
.car-selector{
display: flex;
justify-content: center;
}
.car{
border: 2px solid transparent;
border-radius: 15px;
width:100%;
transition: transform 0.3s, border-color 0.3s;
justify-content:center;
cursor: pointer;
animation: fadeIn 3s;
}
@keyframes fadeIn{
0% {opacity: 0;}
100%{opacity:1;}
}
.car:hover{
transform: scale(1.1);
color: rgb(142, 127, 170);
}
.car-image{
width:33%;
background-size: contain;
background-repeat: no-repeat;
margin: 0 auto;
float: left;
}
header{
animation: fadeIn 3s;
}
.seven
{
animation-name:moves;
animation-duration: 2s;
animation-iteration-count: 1;
position: relative;
}
@keyframes moves{
0%{ left: 0px;}
50%{left: 1000px;}
100%{left:0px;}
}
.eight
{
animation-name:move;
animation-duration: 2s;
animation-iteration-count: 1;
position: relative;
}
@keyframes move{
0%{ right: 0px;}
50%{right: 1000px;}
100%{right:0px;}
}