-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f7fc2a
commit c934571
Showing
3 changed files
with
112 additions
and
109 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 |
---|---|---|
@@ -1,74 +1,73 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Star Animation</title> | ||
<link href="styles.css" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<div id="main"> | ||
<div class="mainStar"></div> | ||
<div class="starOuter"> | ||
<div class="starInner"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -.5s;"> | ||
<div class="starInner" style="animation-delay: -.5s;"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -1s;"> | ||
<div class="starInner" style="animation-delay: -1s;"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -1.5s;"> | ||
<div class="starInner" style="animation-delay: -1.5s;"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -2s;"> | ||
<div class="starInner" style="animation-delay: -2s;"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -2.5s;"> | ||
<div class="starInner" style="animation-delay: -2.5s;"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -3s;"> | ||
<div class="starInner" style="animation-delay: -3s;"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -3.5s;"> | ||
<div class="starInner" style="animation-delay: -3.5s;"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -4s;"> | ||
<div class="starInner" style="animation-delay: -4s;"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -4.5s;"> | ||
<div class="starInner" style="animation-delay: -4.5s;"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -5s;"> | ||
<div class="starInner" style="animation-delay: -5s;"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -5.5s;"> | ||
<div class="starInner" style="animation-delay: -5.5s;"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -6s;"> | ||
<div class="starInner" style="animation-delay: -6s;"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -6.5s;"> | ||
<div class="starInner" style="animation-delay: -6.5s;"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -7s;"> | ||
<div class="starInner" style="animation-delay: -7s;"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -7.5s;"> | ||
<div class="starInner" style="animation-delay: -7.5s;"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -8s;"> | ||
<div class="starInner" style="animation-delay: -8s;"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -8.5s;"> | ||
<div class="starInner" style="animation-delay: -8.5s;"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -9s;"> | ||
<div class="starInner" style="animation-delay: -9s;"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -9.5s;"> | ||
<div class="starInner" style="animation-delay: -9.5s;"></div> | ||
</div> | ||
|
||
</div> | ||
</body> | ||
</html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>Star Animation</title> | ||
<link href="styles.css" rel="stylesheet" /> | ||
</head> | ||
<body> | ||
<div id="main"> | ||
<div class="mainStar"></div> | ||
<div class="starOuter"> | ||
<div class="starInner"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -0.5s"> | ||
<div class="starInner" style="animation-delay: -0.5s"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -1s"> | ||
<div class="starInner" style="animation-delay: -1s"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -1.5s"> | ||
<div class="starInner" style="animation-delay: -1.5s"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -2s"> | ||
<div class="starInner" style="animation-delay: -2s"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -2.5s"> | ||
<div class="starInner" style="animation-delay: -2.5s"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -3s"> | ||
<div class="starInner" style="animation-delay: -3s"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -3.5s"> | ||
<div class="starInner" style="animation-delay: -3.5s"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -4s"> | ||
<div class="starInner" style="animation-delay: -4s"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -4.5s"> | ||
<div class="starInner" style="animation-delay: -4.5s"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -5s"> | ||
<div class="starInner" style="animation-delay: -5s"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -5.5s"> | ||
<div class="starInner" style="animation-delay: -5.5s"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -6s"> | ||
<div class="starInner" style="animation-delay: -6s"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -6.5s"> | ||
<div class="starInner" style="animation-delay: -6.5s"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -7s"> | ||
<div class="starInner" style="animation-delay: -7s"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -7.5s"> | ||
<div class="starInner" style="animation-delay: -7.5s"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -8s"> | ||
<div class="starInner" style="animation-delay: -8s"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -8.5s"> | ||
<div class="starInner" style="animation-delay: -8.5s"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -9s"> | ||
<div class="starInner" style="animation-delay: -9s"></div> | ||
</div> | ||
<div class="starOuter" style="animation-delay: -9.5s"> | ||
<div class="starInner" style="animation-delay: -9.5s"></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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"artName": "GoldenStars", | ||
"githubHandle": "jeffwiatt" | ||
} | ||
} |
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,56 +1,60 @@ | ||
body { | ||
background-color: #0f105e; | ||
background-color: #0f105e; | ||
} | ||
|
||
#main { | ||
position: absolute; | ||
width: 500px; | ||
height: 500px; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
position: absolute; | ||
width: 500px; | ||
height: 500px; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
} | ||
|
||
.mainStar { | ||
position: absolute; | ||
top: 150px; | ||
left: 150px; | ||
width: 200px; | ||
height: 200px; | ||
aspect-ratio: 1; | ||
background: #F8CA00; | ||
clip-path: polygon(50% 0,79% 90%,2% 35%,98% 35%,21% 90%); | ||
transform-origin: 50% 50%; | ||
animation: spin-right 10s infinite linear; | ||
position: absolute; | ||
top: 150px; | ||
left: 150px; | ||
width: 200px; | ||
height: 200px; | ||
aspect-ratio: 1; | ||
background: #f8ca00; | ||
clip-path: polygon(50% 0, 79% 90%, 2% 35%, 98% 35%, 21% 90%); | ||
transform-origin: 50% 50%; | ||
animation: spin-right 10s infinite linear; | ||
} | ||
|
||
.starOuter { | ||
position: absolute; | ||
left: 225px; | ||
top: 0; | ||
width: 50px; | ||
height: 50px; | ||
transform-origin: 25px 250px; | ||
animation: spin-left 10s infinite linear; | ||
position: absolute; | ||
left: 225px; | ||
top: 0; | ||
width: 50px; | ||
height: 50px; | ||
transform-origin: 25px 250px; | ||
animation: spin-left 10s infinite linear; | ||
} | ||
|
||
.starInner { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 50px; | ||
height: 50px; | ||
aspect-ratio: 1; | ||
background: #F8CA00; | ||
clip-path: polygon(50% 0,79% 90%,2% 35%,98% 35%,21% 90%); | ||
transform-origin: 50% 50%; | ||
animation: spin-right 10s infinite linear; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 50px; | ||
height: 50px; | ||
aspect-ratio: 1; | ||
background: #f8ca00; | ||
clip-path: polygon(50% 0, 79% 90%, 2% 35%, 98% 35%, 21% 90%); | ||
transform-origin: 50% 50%; | ||
animation: spin-right 10s infinite linear; | ||
} | ||
|
||
@keyframes spin-right { | ||
100% { transform: rotateZ( -360deg); } | ||
100% { | ||
transform: rotateZ(-360deg); | ||
} | ||
} | ||
|
||
@keyframes spin-left { | ||
100% { transform: rotateZ( 360deg); } | ||
100% { | ||
transform: rotateZ(360deg); | ||
} | ||
} |