Skip to content

Commit a115cab

Browse files
committed
v3.1
1 parent 25a6000 commit a115cab

File tree

4 files changed

+109
-3
lines changed

4 files changed

+109
-3
lines changed

index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
<span class='green'></span>
2121
</div>
2222
</div>
23+
<div class="car">
24+
<img src="./images/car.png" alt="car">
25+
</div>
2326
<!--- End --->
2427
</body>
2528
</html>

style.css

Lines changed: 50 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

style.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

style.scss

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,62 @@
3939
width: 60px;
4040
height: 60px;
4141
border-radius: 50%;
42-
border: 2px solid green;
42+
z-index: 3;
4343
margin-bottom: 5px;
44+
position: relative;
45+
background: #555;
46+
border: 5px solid #3b3b3b;
47+
}
48+
.red {
49+
animation-name: red;
50+
animation-duration: 4s;
51+
animation-delay: 2s;
52+
}
53+
.yellow {
54+
animation-name: yellow;
55+
animation-duration: 4s;
56+
animation-delay: 6s;
57+
}
58+
.green {
59+
animation-name: green;
60+
animation-duration: 4s;
61+
animation-delay: 10s;
4462
}
4563
}
4664
}
65+
66+
@keyframes red {
67+
0% {
68+
background: #3b3b3b;
69+
}
70+
100% {
71+
background: #ec1527;
72+
box-shadow: 0 0 15px #ec1527;
73+
}
74+
}
75+
@keyframes yellow {
76+
from {
77+
background: #FFC234;
78+
}
79+
to {
80+
background: #FFC234;
81+
box-shadow: 0 0 15px #FFC234;
82+
}
83+
}
84+
85+
@keyframes green {
86+
from {
87+
background: #4FB954;
88+
}
89+
to {
90+
background: #4FB954;
91+
box-shadow: 0 0 15px #4FB954;
92+
}
93+
}
94+
95+
.car {
96+
97+
img {
98+
width: 200px;
99+
}
100+
}

0 commit comments

Comments
 (0)