-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added simple html boilerplate and css file * Added divs and classes for dog walk animation * Added styling - created golden retriever * Created key frames for CSS animation * Added dog walk gif * Removed unused styling element of body * Added information card to include.js * Added background color --------- Co-authored-by: Sophia Brandt <16630701+sophiabrandt@users.noreply.github.com>
- Loading branch information
1 parent
f4e2cdd
commit 57384ef
Showing
4 changed files
with
211 additions
and
0 deletions.
There are no files selected for viewing
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,38 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
|
||
<title>Madelen Foss' CSS animation</title> | ||
|
||
<meta name="description" content="Animation created with HTML and CSS only"> | ||
|
||
<link rel="stylesheet" href="./style.css"> | ||
|
||
</head> | ||
<body class="madelenfoss__animation-body"> | ||
<div class="sky"></div> | ||
<div class="grass"> | ||
<div class="dog"> | ||
<div class="dog__head"> | ||
<div class="dog__ear-right"></div> | ||
<div class="dog__ear-left"></div> | ||
<div class="dog__eye-left"></div> | ||
<div class="dog__eye-right"></div> | ||
<div class="dog__snout"></div> | ||
<div class="dog__nose"></div> | ||
<div class="dog__mouth"></div> | ||
</div> | ||
<div class="dog__body"></div> | ||
<div class="dog__tail"></div> | ||
<div class="dog__legs"> | ||
<div class="dog__leg"></div> | ||
<div class="dog__leg"></div> | ||
<div class="dog__leg"></div> | ||
<div class="dog__leg"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
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,166 @@ | ||
.madelenfoss__animation-body { | ||
min-height: 100vh; | ||
display: flex; | ||
flex-direction: column; | ||
margin: 0 auto; | ||
width: 100%; | ||
background: rgb(9, 46, 21); | ||
} | ||
|
||
.sky { | ||
margin: 0 auto; | ||
background: rgb(112, 193, 255); | ||
width: 100%; | ||
height: 30rem; | ||
} | ||
|
||
.grass { | ||
position: absolute; | ||
display: flex; | ||
margin: 0 auto; | ||
width: 100%; | ||
background: rgb(9, 46, 21); | ||
height: 30rem; | ||
top: 25rem; | ||
} | ||
|
||
.dog { | ||
position: absolute; | ||
top: -12rem; | ||
left: -10rem; | ||
animation-name: walk; | ||
animation-duration: 15s; | ||
animation-iteration-count: infinite; | ||
} | ||
|
||
.dog__head { | ||
position: relative; | ||
margin: 1rem auto; | ||
width: 8rem; | ||
height: 8rem; | ||
background-color: yellow; | ||
border-radius: 3rem; | ||
} | ||
|
||
.dog__ear-right { | ||
position: absolute; | ||
width: 7rem; | ||
height: 2.2rem; | ||
background-color: rgb(160, 118, 55); | ||
border-radius: 10rem; | ||
transform: rotate(30deg); | ||
top: 1rem; | ||
left: 6rem; | ||
} | ||
|
||
.dog__ear-left { | ||
position: absolute; | ||
width: 5rem; | ||
height: 1.5rem; | ||
background-color: rgb(160, 118, 55); | ||
border-radius: 10rem; | ||
transform: rotate(-35deg); | ||
top: 0.5rem; | ||
right: 6rem; | ||
} | ||
|
||
.dog__eye-left { | ||
position: absolute; | ||
margin: 1.5rem; | ||
width: 1rem; | ||
height: 1rem; | ||
background-color: black; | ||
border-radius: 10rem; | ||
} | ||
|
||
.dog__eye-right { | ||
position: absolute; | ||
margin: 2rem 3.5rem; | ||
width: 1rem; | ||
height: 1rem; | ||
background-color: black; | ||
border-radius: 10rem; | ||
} | ||
|
||
.dog__snout { | ||
position: absolute; | ||
right: 6.5rem; | ||
top: 4rem; | ||
width: 4rem; | ||
height: 3rem; | ||
background-color: yellow; | ||
border-radius: 4rem 0 0 4rem; | ||
} | ||
|
||
.dog__nose { | ||
position: absolute; | ||
width: 1rem; | ||
height: 1rem; | ||
background-color: red; | ||
border-radius: 10rem; | ||
top: 3.8rem; | ||
right: 10.2rem; | ||
transform: skewY(30deg); | ||
} | ||
|
||
.dog__mouth { | ||
position: absolute; | ||
top: 4.5rem; | ||
right: 8rem; | ||
width: 2rem; | ||
height: 2rem; | ||
border-radius: 5rem; | ||
border-bottom: 5px solid black; | ||
} | ||
|
||
.dog__body { | ||
position: absolute; | ||
top: 8rem; | ||
left: 2rem; | ||
width: 20rem; | ||
height: 10rem; | ||
background-color: yellow; | ||
border-radius: 10rem; | ||
} | ||
|
||
.dog__legs { | ||
position: absolute; | ||
display: flex; | ||
justify-content: space-between; | ||
top: 16rem; | ||
left: 3rem; | ||
} | ||
|
||
.dog__leg { | ||
margin: 0 1.5rem; | ||
width: 1.5rem; | ||
height: 10rem; | ||
background-color: yellow; | ||
border-radius: 10rem; | ||
} | ||
|
||
.dog__tail { | ||
position: absolute; | ||
top: 7rem; | ||
left: 20rem; | ||
width: 9rem; | ||
height: 1rem; | ||
background-color: rgb(160, 118, 55); | ||
border-radius: 10rem; | ||
transform: rotate(-30deg); | ||
} | ||
|
||
|
||
@keyframes walk { | ||
from { | ||
transform: translateX(80rem); | ||
} | ||
|
||
100% { | ||
transform: scale(50%) | ||
} | ||
|
||
to { | ||
transform: translateX(-10); | ||
} | ||
} |
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