-
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.
Added Triangle Projection Animation (#2406)
* Create ring.html "HTML File For Ring Animation" * Create styles.css "CSS File For Ring Animation" * Add Gif file * Update include.js * Create projection.html * Add files via upload * Gif file * Update include.js * Update include.js * Update include.js * Update include.js * Update include.js * Update include.js Co-authored-by: Sophia Brandt <16630701+sophiabrandt@users.noreply.github.com> * Delete Art/stormworm9/TriangleProjection/TriangleProjection.gif * Added new gif --------- Co-authored-by: Sophia Brandt <16630701+sophiabrandt@users.noreply.github.com>
- Loading branch information
1 parent
d0beca4
commit 1bae85a
Showing
4 changed files
with
86 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,19 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>Triangles Projection</title> | ||
<link rel="stylesheet" href="styles.css"> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div class="star-group"> | ||
<div class="star"></div> | ||
<div class="star"></div> | ||
<div class="star"></div> | ||
<div class="star"></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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
body { | ||
background: #000; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
margin: 0; | ||
perspective: 1000px; | ||
} | ||
|
||
.container { | ||
width: 200px; | ||
height: 200px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
position: relative; | ||
} | ||
|
||
.star-group { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
animation: break-stars 4s infinite alternate; | ||
} | ||
|
||
.star { | ||
width: 0; | ||
height: 0; | ||
border-left: 50px solid transparent; | ||
border-right: 50px solid transparent; | ||
border-bottom: 100px solid #fff; | ||
position: relative; | ||
margin: 20px; | ||
transform-style: preserve-3d; | ||
animation: spin 4s linear infinite, break-stars 4s infinite alternate; | ||
} | ||
|
||
@keyframes spin { | ||
0% { | ||
transform: rotate(0deg); | ||
} | ||
100% { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
|
||
@keyframes break-stars { | ||
0%, 100% { | ||
transform: translateY(0); | ||
} | ||
50% { | ||
transform: translateY(-30px); | ||
} | ||
} |
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