-
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.
* Update include.js * added animation * Update style.css Removed unnecessary comment * fix - removed inline style and added them into the css file --------- Co-authored-by: Laureline Paris <32878345+LaurelineP@users.noreply.github.com> Co-authored-by: Laureline <laurelinedev@gmail.com>
- Loading branch information
1 parent
e52130d
commit a5a743d
Showing
4 changed files
with
113 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,17 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Animated Bow</title> | ||
<link rel="stylesheet" href="style.css" /> | ||
</head> | ||
<body> | ||
<div class="diamond"> | ||
<div class="sparkle1"></div> | ||
<div class="sparkle2"></div> | ||
<div class="sparkle3"></div> | ||
<div class="sparkle4"></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,88 @@ | ||
body { | ||
margin: 0; | ||
overflow: hidden; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
background-color: #000; | ||
} | ||
|
||
.diamond { | ||
width: 100px; | ||
height: 100px; | ||
position: relative; | ||
transform: rotate(90deg); | ||
} | ||
|
||
.diamond:before, | ||
.diamond:after { | ||
content: ''; | ||
position: absolute; | ||
width: 0; | ||
border: 50px solid transparent; | ||
} | ||
|
||
.diamond:before { | ||
border-bottom-color: #078ecd; | ||
top: 25px; | ||
} | ||
|
||
.diamond:after { | ||
border-top-color: rgb(255, 0, 76); | ||
bottom: 25px; | ||
} | ||
|
||
/* Sparkling animation */ | ||
.sparkle1 { | ||
top: 20px; | ||
left: 20px; | ||
position: absolute; | ||
width: 10px; | ||
height: 10px; | ||
background-color: #cd4607; | ||
animation: sparkleAnimation 2s infinite; | ||
} | ||
|
||
.sparkle2 { | ||
top: 20px; | ||
left: 60px; | ||
position: absolute; | ||
width: 10px; | ||
height: 10px; | ||
background-color: #c3cd07; | ||
animation: sparkleAnimation 2s infinite; | ||
} | ||
|
||
.sparkle3 { | ||
top: 60px; | ||
left: 20px; | ||
position: absolute; | ||
width: 10px; | ||
height: 10px; | ||
background-color: #07cd28; | ||
animation: sparkleAnimation 2s infinite; | ||
} | ||
|
||
.sparkle4 { | ||
top: 60px; | ||
left: 60px; | ||
position: absolute; | ||
width: 10px; | ||
height: 10px; | ||
background-color: #078ecd; | ||
animation: sparkleAnimation 2s infinite; | ||
} | ||
|
||
@keyframes sparkleAnimation { | ||
0% { | ||
transform: translateY(15px); | ||
} | ||
50% { | ||
transform: translateY(-15px); | ||
} | ||
100% { | ||
transform: translateY(20px); | ||
} | ||
} | ||
|
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