Skip to content

Commit

Permalink
Merge pull request #2880 from jeffwiatt/working
Browse files Browse the repository at this point in the history
Removed hidden folder
  • Loading branch information
sophiabrandt authored Nov 1, 2024
2 parents 2885f3a + 8a3de30 commit fff6e3d
Show file tree
Hide file tree
Showing 3 changed files with 134 additions and 0 deletions.
74 changes: 74 additions & 0 deletions Art/jeffwiatt-GoldenStars/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<!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>
4 changes: 4 additions & 0 deletions Art/jeffwiatt-GoldenStars/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"artName": "GoldenStars",
"githubHandle": "jeffwiatt"
}
56 changes: 56 additions & 0 deletions Art/jeffwiatt-GoldenStars/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
body {
background-color: #0f105e;
}

#main {
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;
}

.starOuter {
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;
}

@keyframes spin-right {
100% { transform: rotateZ( -360deg); }
}

@keyframes spin-left {
100% { transform: rotateZ( 360deg); }
}

0 comments on commit fff6e3d

Please sign in to comment.