Skip to content

Commit

Permalink
Animation (#2342)
Browse files Browse the repository at this point in the history
Co-authored-by: Sophia Brandt <16630701+sophiabrandt@users.noreply.github.com>
  • Loading branch information
abdullahsadik00 and sophiabrandt authored Oct 26, 2023
1 parent 3e11eb9 commit 62d050b
Show file tree
Hide file tree
Showing 4 changed files with 130 additions and 0 deletions.
Binary file added Art/abdullahsadik00/animation.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions Art/abdullahsadik00/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Animation</title>
<link rel="stylesheet" href="style.css">
</head>

<body>

<!-- SPINNER ORBITS -->
<div class="container">
<div class="spinner-box">
<div class="blue-orbit leo">
</div>

<div class="green-orbit leo">
</div>

<div class="red-orbit leo">
</div>

<div class="white-orbit w1 leo">
</div>
<div class="white-orbit w2 leo">
</div>
<div class="white-orbit w3 leo">
</div>
</div>
</div>

</body>

</html>
87 changes: 87 additions & 0 deletions Art/abdullahsadik00/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
* {
box-sizing: border-box;
}

body {
min-height: 100vh;
background-color: #1d2630;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
align-items: flex-start;
}

.container {
display: flex;
align-items: center;
justify-content: center;
width: 100vh;
height: 100vh;
}

.spinner-box {
width: 300px;
height: 300px;
display: flex;
justify-content: center;
align-items: center;
background-color: transparent;
}

.blue-orbit {
width: 165px;
height: 165px;
border: 1px solid #91daffa5;
animation: spin3D 3s linear .2s infinite;
}

.leo {
position: absolute;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
}

.green-orbit {
width: 120px;
height: 120px;
border: 1px solid #91ffbfa5;
animation: spin3D 2s linear 0s infinite;
}

.red-orbit {
width: 90px;
height: 90px;
border: 1px solid #ffca91a5;
animation: spin3D 1s linear 0s infinite;
}

.white-orbit {
width: 60px;
height: 60px;
border: 2px solid #ffffff;
animation: spin3D 10s linear 0s infinite;
}

.w1 {
transform: rotate3D(1, 1, 1, 90deg);
}

.w2 {
transform: rotate3D(1, 2, .5, 90deg);
}

.w3 {
transform: rotate3D(.5, 1, 2, 90deg);
}

@keyframes spin3D {
from {
transform: rotate3d(.5, .5, .5, 360deg);
}

to {
transform: rotate3d(0deg);
}
}
7 changes: 7 additions & 0 deletions include.js
Original file line number Diff line number Diff line change
Expand Up @@ -2333,6 +2333,13 @@ let cards = [
author: 'Dzivmv',
githubLink: 'https://github.com/Dzivmv'
},
{
artName: 'SPINNER ORBITS',
pageLink: './Art/abdullahsadik00/index.html',
imageLink: './Art/abdullahsadik00/animation.gif',
author: 'Sadik Shaikh',
githubLink: 'https://github.com/abdullahsadik00'
},
{
artName: 'Avengers Animation',
pageLink: './Art/lavish-github/avengers.html',
Expand Down

0 comments on commit 62d050b

Please sign in to comment.