Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please review and merge. Thank you! #2550

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
Binary file added Art/niyati/car-animation.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
92 changes: 92 additions & 0 deletions Art/niyati/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
.container {
width: 100%;
overflow: hidden;
background: url(./image/sky.jpg);
}

.wrapper {
height: 95vh;
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
}

.city {
background: url(./image/city.png);
background-repeat: repeat-x;
width: 2000%;
height: 360px;
z-index: 9;
position: absolute;
top: 44%;
animation: city 4s linear infinite;
}

@keyframes city {
100% {
transform: translateX(-1415px);
}
}

.car {
width: 500px;
position: relative;
top: 15%;
z-index: 10;
}

.car img {
width: 100%;
animation: car 1s linear infinite;
}

@keyframes car {
0% {
transform: translateY(-3px);
}
50% {
transform: translateY(3px);
}
100% {
transform: translateY(-3px);
}
}

.wheel {
position: absolute;
width: 85px;
animation: wheels 1s linear infinite;
}

.wheel.back {
top: 53%;
left: 9.4%;
}

.wheel.front {
top: 53%;
right: 12.4%;
}

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

.road {
width: 2000%;
height: 250px;
background: url(./image/road.jpg);
background-repeat: repeat-x;
animation: road 0.9s linear infinite;
z-index: 1;
}

@keyframes road {
100% {
transform: translateX(-1250px);
}
}
30 changes: 30 additions & 0 deletions Art/niyati/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="index.css" type="text/css" />
<title>Assignment 10</title>
</head>

<body>
<div class="container">
<div class="wrapper">
<div class="city"></div>
<div class="car">
<img src="./image/car.png" alt="" />
<div class="wheel back">
<img src="./image/wheel3.png" alt="" />
</div>
<div class="wheel front">
<img src="./image/wheel3.png" alt="" />
</div>
</div>
<div class="road"></div>
</div>
</div>
</body>

</html>
7 changes: 7 additions & 0 deletions include.js
Original file line number Diff line number Diff line change
Expand Up @@ -2903,6 +2903,13 @@ let cards = [
author: 'Kalliran',
githubLink: 'https://github.com/Kalliran'
},
{
artName: 'Car-Animation',
pageLink: './Art/niyati/index.html',
imageLink: './Art/niyati/car-animation.gif',
author: 'Niyati Patel',
githubLink: 'https://github.com/NiyatiMPatel'
}
];

/* -------------------------------------------------------------------------- */
Expand Down