Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 78 additions & 0 deletions param-animation/car.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
body{
margin: 0;
padding: 0;
background-color: #000000;
}
.car {
width: 150px;
height: 50px;
background-color: #3498db;
border-radius: 5px;
position: absolute;
bottom: 100px;
left: 0;
animation: moveCar 3s linear infinite;
}
.wheel {
width: 30px;
height: 30px;
background-color: #333;
border-radius: 50%;
position: absolute;
bottom: -15px;
animation: rotate 1s linear infinite;
}

.wheel.left {
left: 15px;
}

.wheel.right {
right: 15px;
}


.text {
position: absolute;
bottom: 160px;
left: 0;
font-size: 20px;
color: #333;
opacity: 0;
animation: moveText 2s linear infinite;
}


@keyframes rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}


@keyframes moveCar {
0% {
left: 0;
}
100% {
left: 100%;
}
}


@keyframes moveText {
0% {
left: 0;
opacity: 10;
}
70% {
color: #ffd900;
}
100% {
left: 100%;

}
}
16 changes: 16 additions & 0 deletions param-animation/car.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Car</title>
<link rel="stylesheet" href="car.css">
</head>
<body>
<div class="car">
<div class="wheel left"></div>
<div class="wheel right"></div>
</div>
<div class="text">Vroom........ </div>
</body>
</html>