Skip to content

Commit

Permalink
initial commit for submission (#2374)
Browse files Browse the repository at this point in the history
* initial commit for submission

initial commit for submission

* Feedback comments fixed

1.Submission folder renamed to my github repo name.
2. Contribution details added in include.js.
Please review

* Update include.js

updated include.js to resolve merge conflict

---------

Co-authored-by: Sophia Brandt <16630701+sophiabrandt@users.noreply.github.com>
  • Loading branch information
Suparnaen and sophiabrandt committed Oct 30, 2023
1 parent fb52e3b commit 44392a5
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 0 deletions.
Binary file added Art/Suparnaen/Smiling-pumpkin-animation.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
87 changes: 87 additions & 0 deletions Art/Suparnaen/smiling_pumpkin.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
body {
background-color: darkgreen;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}

.pumpkin {
width: 250px;
height: 250px;
background-color:orange;
border-radius: 50%;
position: relative;
animation: float 2s ease-in-out infinite;
}

.eyes {
position: absolute;
top: 50%;
width: 20px;
height: 20px;
background-color: #000;
border-radius: 50%;
transform: translateY(-50%);
animation: move-eyes 2s linear infinite alternate;
}

.eye-left {
left: 30%;
}

.eye-right {
left: 70%;
}

.mouth {
position: absolute;
top: 60%;
left: 50%;
width: 60px;
height: 30px;
background-color: transparent;
border: 2px solid #000;
border-radius: 0 0 60px 60px;
transform: translateX(-50%);
}

.tooth {
position: absolute;
top: 50%;
left: 20%;
width: 15px;
height: 15px;
background-color: #fff;
border-radius: 50%;
transform: translate(-50%, -50%);
animation: move-tooth 2s linear infinite alternate;
}

@keyframes float {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-5px);
}
}

@keyframes move-tooth {
0%, 100% {
left: 20%;
}
50% {
left: 80%;
}
}

@keyframes move-eyes {
0%, 100% {
top: 50%;
}
50% {
top: 55%;
}
}
20 changes: 20 additions & 0 deletions Art/Suparnaen/smiling_pumpkin.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Smiling Pumpkin</title>
<link rel="stylesheet" href="smiling_pumpkin.css">
</head>
<body>
<div class="pumpkin">
<div class="eyes eye-left"></div>
<div class="eyes eye-right"></div>
<div class="mouth">
<div class="tooth"></div>
<div class="tooth" style="left: 40%;"></div>
<div class="tooth" style="left: 60%;"></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 @@ -41,6 +41,7 @@ let cards = [
author: 'Krish Gautam',
githubLink: 'https://github.com/Kris248'
},

{
artName: 'Ball Animation',
pageLink: './Art/daemonvk18/animation..html',
Expand Down Expand Up @@ -2600,6 +2601,12 @@ let cards = [
githubLink: 'https://github.com/rudrakushwaha'
},
{
artName: 'Smiling Pumpkin Animation',
pageLink: './Art/Suparnaen/smiling_pumpkin.html',
imageLink: 'Art/Suparnaen/smiling-pumpkin-animation.gif',
author: 'Suparna Das',
githubLink: 'https://github.com/Suparnaen'
},
artName: 'Bouncing Balls with colour change',
pageLink: './Art/Vivek-GuptaXCode/bouncing-ball.html',
imageLink: './Art/Vivek-GuptaXCode/bouncing-ball.gif',
Expand Down

0 comments on commit 44392a5

Please sign in to comment.