-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial commit for submission (#2374)
* 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
1 parent
fb52e3b
commit 44392a5
Showing
4 changed files
with
114 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters