-
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.
changed my stars animation to be infinite (#2390)
* my falling ball animation * corrected path on include.js * added stars animation * replaced wrong file with the right gif file * improved css file * changed to infinite * flying baloon animation * chaned to infinite --------- Co-authored-by: Laureline Paris <32878345+LaurelineP@users.noreply.github.com>
- Loading branch information
1 parent
dc74b05
commit 43c5601
Showing
5 changed files
with
100 additions
and
1 deletion.
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,20 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<!-- <meta http-equiv="refresh" content="3"> --> | ||
<title>Baloon</title> | ||
<link rel="stylesheet" type="text/css" href="style.css"> | ||
</head> | ||
<body> | ||
<div class="baloon-container"> | ||
<div class="baloon"></div> | ||
<div class="baloon-tie"></div> | ||
<div class="baloon-strand1"></div> | ||
<!-- <div class="baloon-strand2"></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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
display: grid; | ||
place-content: center; | ||
background-color: antiquewhite; | ||
|
||
} | ||
|
||
.baloon { | ||
display: block; | ||
height: 5rem; | ||
width: 5rem; | ||
background-color: blueviolet; | ||
border-radius: 50% 58% 43% 58%; | ||
} | ||
|
||
.baloon-tie { | ||
display: block; | ||
height: 0.5rem; | ||
width: 20px; | ||
margin-top: -2px;; | ||
margin-left: 40px; | ||
|
||
background-color: blueviolet; | ||
clip-path: polygon(40% 0%, 50% 0%, 0% 100%, 100% 100%); | ||
} | ||
.baloon-strand1 { | ||
display: block; | ||
width:5rem; | ||
height:5rem; | ||
border:solid 5px #000; | ||
border-color:#000 transparent transparent transparent; | ||
border-radius: 100px 100%/50px 100px 0 0; | ||
margin-left: -30px; | ||
margin-top: -15px; | ||
transform: rotate(90deg) | ||
} | ||
|
||
|
||
.baloon-container { | ||
position: relative; | ||
padding: 0; | ||
height: 200px; | ||
width: 100px; | ||
background-color: inherit; | ||
display: grid; | ||
place-content: center ; | ||
animation: swing 4000ms infinite; | ||
} | ||
|
||
@keyframes swing { | ||
0% { | ||
transform: translateY(300%) rotate(30deg) ; | ||
animation-timing-function: linear; | ||
} | ||
|
||
|
||
50% { | ||
transform: translateY(100%) rotate(-30deg) ; | ||
animation-timing-function: linear; | ||
|
||
|
||
} | ||
100% { | ||
transform: translateY(-200%) rotate(30deg) ; | ||
animation-timing-function: linear; | ||
|
||
|
||
} | ||
|
||
} |
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
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