Skip to content

Commit

Permalink
Merge pull request #1825 from zero-to-mastery/anki0199-ankita
Browse files Browse the repository at this point in the history
Anki0199 ankita
  • Loading branch information
l-white committed Oct 3, 2023
2 parents 7c99e97 + e09c04c commit 63d2373
Show file tree
Hide file tree
Showing 4 changed files with 178 additions and 0 deletions.
Binary file added Art/AnkitaM/Waving-Ghost-Animation.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions Art/AnkitaM/ghost.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!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" />
<title>Waving Ghost Animation</title>
<link rel="stylesheet" href="./style.css" />
</head>

<body>
<div class="ghost">
<div class="face">
<div class="eyes">
<span></span>
<span></span>
</div>
<div class="mouth"></div>
</div>

<div class="hands">
<span></span>
<span></span>
</div>

<div class="feet">
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</div>

<div class="shadow"></div>
</body>
</html>
135 changes: 135 additions & 0 deletions Art/AnkitaM/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
body {
margin: 0;
padding: 0;
background-color: rgb(18, 38, 43);
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

/* Ghost */
.ghost {
width: 140px;
height: 160px;
background-color: #f2f2f2;
border-radius: 70px 70px 0 0;
position: relative;
cursor: pointer;
animation: flying 2s infinite ease-in-out;
}
@keyframes flying {
50% {
transform: translateY(-30px);
}
}

/* Face */
.face {
width: 100px;
position: absolute;
top: 60px;
left: calc(50% - 50px);
}

.eyes {
height: 24px;
display: flex;
justify-content: space-around;
align-items: center;
margin-bottom: 14px;
}

.eyes span {
width: 24px;
height: 24px;
background-color: black;
border-radius: 50%;
animation: blinking 2s infinite ease-in-out;
}

.mouth {
width: 40px;
height: 20px;
background-color: black;
margin: auto;
border-radius: 0 0 20px 20px;
animation: blinking 2s infinite ease-in-out;
}
@keyframes blinking {
50% {
height: 15px;
}
}

/* Hands */
.hands {
width: 210px;
position: absolute;
left: -35px;
top: 80px;
display: flex;
justify-content: space-between;
}

.hands span {
width: 60px;
height: 30px;
background-color: #f2f2f2;
}

.hands span:first-child {
border-radius: 20px;
transform: rotate(-30deg);
animation: hand1 2s infinite ease-in-out;
}
@keyframes hand1 {
50% {
transform: rotate(30deg);
}
}

.hands span:last-child {
border-radius: 20px;
transform: rotate(30deg);
animation: hand2 2s infinite ease-in-out;
}
@keyframes hand2 {
50% {
transform: rotate(-30deg);
}
}

/* Feet */
.feet {
position: absolute;
width: 100%;
bottom: -19px;
display: flex;
}

.feet span {
flex: 1;
height: 20px;
background-color: #f2f2f2;
border-radius: 0 0 20px 20px;
}

/* Shadow */
.shadow {
margin-top: 50px;
width: 100px;
height: 30px;
background-color: rgba(161, 161, 161, 0.3);
box-shadow: 0 4px 8px 0 rgba(205, 203, 203, 0.2),
0 6px 20px 0 rgba(168, 166, 166, 0.19);
border-radius: 100%;
opacity: 0.8;
animation: shadow 2s infinite ease-in-out;
}
@keyframes shadow {
50% {
width: 140px;
}
}
7 changes: 7 additions & 0 deletions include.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@ let cards = [
imageLink: './Art/KrishayNair/circle.gif',
author: 'KrishayNair',
githubLink: 'https://github.com/KrishayNair'
},
{
artName: 'Waving Ghost Animation',
pageLink: './Art/AnkitaM/ghost.html',
imageLink: './Art/AnkitaM/Waving-Ghost-Animation.gif',
author: 'Ankita M.',
githubLink: 'https://github.com/anki009/'
}
];

Expand Down

0 comments on commit 63d2373

Please sign in to comment.