Skip to content

Commit

Permalink
Added Triangle Projection Animation (#2406)
Browse files Browse the repository at this point in the history
* 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
stormworm9 and sophiabrandt committed Nov 1, 2023
1 parent d0beca4 commit 1bae85a
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions Art/stormworm9/TriangleProjection/projection.html
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>
55 changes: 55 additions & 0 deletions Art/stormworm9/TriangleProjection/styles.css
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);
}
}
13 changes: 12 additions & 1 deletion include.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,25 @@ let cards = [
imageLink: './Art/stormworm9/RingAnimation/ring.gif',
author: 'stormworm9',
githubLink: 'https://github.com/stormworm9'
},
},

{
artName: 'TriangleProjection',
pageLink: './Art/stormworm9/TriangleProjection/projection.html',
imageLink: './Art/stormworm9/TriangleProjection/TriangleProjection.gif',
author: 'stormworm9',
githubLink: 'https://github.com/stormworm9'
},


{
artName: 'Loading Page',
pageLink: './Art/SaumyaKumar-09/Animation%204/index.html',
imageLink: './Art/SaumyaKumar-09/Animation%204/Animation4.gif',
author: 'SaumyaKumar-09',
githubLink: 'https://github.com/SaumyaKumar-09'
},

{
artName: 'Windows start animation',
pageLink: './Art/SaumyaKumar-09/Animation%202/index.html',
Expand Down

0 comments on commit 1bae85a

Please sign in to comment.