Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Triangle Projection Animation #2406

Merged
merged 23 commits into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -5,14 +5,25 @@ let cards = [
imageLink: './Art/stormworm9/RingAnimation/ring.gif',
author: 'stormworm9',
githubLink: 'https://github.com/stormworm9'
},
}
stormworm9 marked this conversation as resolved.
Show resolved Hide resolved

{
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: 'Elevator Ride',
pageLink: './Art/deverestHood/index.html',
Expand Down