forked from zero-to-mastery/Animation-Nation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding my new art (zero-to-mastery#2295)
* adding my animation * create circle animation * add immage * Update include.js I'm very sorry for my inattentiveness :/ * update fokredd * complex animation * add image * test * Update square.html * Update square.css --------- Co-authored-by: Sophia Brandt <16630701+sophiabrandt@users.noreply.github.com> Co-authored-by: Laureline Paris <32878345+LaurelineP@users.noreply.github.com>
- Loading branch information
1 parent
becc593
commit e8f9925
Showing
6 changed files
with
73 additions
and
2 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,46 @@ | ||
.inner { | ||
background-color: red; | ||
width: 100px; | ||
height: 100px; | ||
border-radius: 44%; | ||
animation: box 15s infinite; | ||
} | ||
.box{ | ||
animation: rot 2s infinite; | ||
background-color: black; | ||
width: 300px; | ||
height: 300px; | ||
margin: 0 auto; | ||
margin-top: 30vh; | ||
|
||
} | ||
#inner1{ | ||
background-color: red; | ||
|
||
} | ||
#inner2{ | ||
background-color: greenyellow; | ||
|
||
} | ||
#inner3{ | ||
background-color: goldenrod; | ||
|
||
} | ||
@keyframes box { | ||
0% { | ||
background-color: red; | ||
} | ||
|
||
100% { | ||
background-color: green; | ||
} | ||
} | ||
@keyframes rot { | ||
0%, | ||
100% { | ||
transform: rotate(360deg); | ||
} | ||
50% { | ||
transform: rotate(0deg); | ||
} | ||
} |
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,15 @@ | ||
<link rel="stylesheet" href="complex.css" /> | ||
|
||
<div class="animation-wrapper"> | ||
<div class="box"> | ||
<div class="inner" id="inner1"> | ||
|
||
</div> | ||
<div class="inner" id="inner2"> | ||
|
||
</div> | ||
<div class="inner" id="inner3"> | ||
|
||
</div> | ||
</div> | ||
</div> |
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
100% { | ||
transform: scale(1); | ||
} | ||
|
||
50% { | ||
transform: scale(1.5); | ||
} | ||
|
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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
<link rel="stylesheet" href="square.css" /> | ||
|
||
<div class="animation-wrapper"> | ||
<div class="box1"></div> | ||
|
||
<div class="box1"> | ||
</div> | ||
|
||
</div> |
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