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

Christine aqui hacktober2023 #1827

Merged
merged 3 commits into from
Oct 3, 2023
Merged
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
108 changes: 108 additions & 0 deletions Art/ChrisAqui/dog.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
body,
html {
margin: 0;
height: 100%;
}

body {
display: flex;
justify-content: center;
align-items: center;
background-color: #a0d8f1;
}

.dog {
position: relative;
width: 60px;
height: 40px;
animation: walk 5s linear infinite;
}

.body {
position: absolute;
width: 60px;
height: 40px;
background-color: brown;
border-radius: 30px;
}

.leg {
position: absolute;
width: 10px;
height: 40px;
background-color: brown;
border-radius: 5px;
animation: walkLegs 0.5s linear infinite;
}

.front-left {
top: 25px;
left: 10px;
animation-delay: 0.25s;
}

.front-right {
top: 25px;
left: 40px;
}

.back-left {
top: 25px;
left: 0;
}

.back-right {
top: 25px;
left: 50px;
animation-delay: 0.25s;
}
.head {
position: absolute;
width: 30px;
height: 30px;
background-color: brown;
border-radius: 50%;
top: -15px;
left: 50px;
}

.head::before,
.head::after {
content: '';
position: absolute;
width: 20px;
height: 10px;
background-color: brown;
border-radius: 50%;
}

.head::before {
transform: rotate(45deg);
top: -5px;
left: -10px;
}

.head::after {
transform: rotate(-45deg);
top: -5px;
right: -10px;
}

@keyframes walk {
0% {
transform: translateX(-100px);
}
100% {
transform: translateX(100%);
}
}

@keyframes walkLegs {
0%,
100% {
transform: translateY(0);
}
50% {
transform: translateY(10px);
}
}
Binary file added Art/ChrisAqui/dog.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions Art/ChrisAqui/dog.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Dog Walking Animation</title>
<link rel="stylesheet" href="dog.css" />
</head>
<body>
<div class="dog">
<div class="body"></div>
<div class="head"></div>
<div class="leg front-left"></div>
<div class="leg front-right"></div>
<div class="leg back-left"></div>
<div class="leg back-right"></div>
</div>
</body>
</html>
7 changes: 7 additions & 0 deletions include.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,13 @@ let cards = [
imageLink: './Art/Sheefa/QuadroHypnoSpin.gif',
author: 'Sheefa',
githubLink: 'https://github.com/sheefanaaz123'
},
{
artName: 'Walking Dog',
pageLink: './Art/ChrisAqui/dog.html',
imageLink: './Art/ChrisAqui/dog.gif',
author: 'Chris Aqui',
githubLink: 'https://github.com/christine-aqui'
}
];

Expand Down
Loading