Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #448 from zero-to-mastery/AnrichV-portball
Browse files Browse the repository at this point in the history
Anrich v portball
  • Loading branch information
l-white committed Aug 9, 2023
2 parents 52ffea4 + 4d11fb1 commit 47e0928
Show file tree
Hide file tree
Showing 4 changed files with 199 additions and 0 deletions.
Binary file added Art/Anrich/Portball.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions Art/Anrich/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<title>Portball</title>
</head>
<body>
<div class="container">
<div class="Cover">
<div class="ball"></div>
<div class="porthole"></div>
<div class="porthole"></div>
</div>
</div>
</body>
</html>
146 changes: 146 additions & 0 deletions Art/Anrich/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
body {
width: 100vw;
height: 100vh;
margin: 0px;
}
.container {
margin: 0px;
position: absolute;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(rgb(0, 0, 36), rgb(48, 0, 48));
box-shadow: 0 0 10px 10px magenta;
z-index: 1;
}

.ball {
position: relative;
top: -10%;
margin: 0 auto;
display: flex;
justify-content: space-around;
background: cyan;
height: 15%;
aspect-ratio: 1/1;
border-radius: 50%;
animation: fall;
animation-duration: 2s;
animation-iteration-count: infinite;
z-index: 3;
}

.Cover {
position: fixed;
display: flex;
justify-content: center;
background: none;
height: 57%;
width: 50%;
z-index: 3;
overflow: hidden;
border-radius: 50%;
}

.porthole {
position: fixed;
align-self: start;
background: rgb(124, 0, 124);
width: 15%;
aspect-ratio: 3/1;
border-radius: 50%;
animation: dimm 2s infinite;
box-shadow: 0 0 10px 10px magenta;
z-index: 2;
}

.porthole:nth-child(2) {
animation: dimm2 2s infinite;
background: rgb(0, 78, 109);
align-self: end;
box-shadow: 0 0 10px 10px cyan;
box-shadow: inset 0 0 10px 10px cyan;
}

@keyframes fall {
0% {
top: -30%;
background-color: cyan;
box-shadow: 0 0 10px 10px magenta;
}
25% {
box-shadow: 0 0 10px 10px cyan;
background-color: magenta;
}
50% {
background-color: cyan;
box-shadow: 0 0 10px 10px magenta;
}
75% {
background-color: magenta;
box-shadow: 0 0 10px 10px cyan;
}
100% {
background-color: cyan;
top: 120%;
box-shadow: 0 0 10px 10px magenta;
}
}

@keyframes dimm {
0% {
box-shadow: 0 0 10px 10px rgba(255, 0, 255, 100%);
-webkit-animation-timing-function: ease-in;
-webkit-animation-timing-function: ease-out;
}
25% {
box-shadow: 0 0 10px 10px rgba(255, 0, 255, 50%);
-webkit-animation-timing-function: ease-in;
-webkit-animation-timing-function: ease-out;
}
50% {
box-shadow: 0 0 10px 10px rgba(255, 0, 255, 25%);
-webkit-animation-timing-function: ease-in;
-webkit-animation-timing-function: ease-out;
}
75% {
box-shadow: 0 0 10px 10px rgba(255, 0, 255, 75%);
-webkit-animation-timing-function: ease-in;
-webkit-animation-timing-function: ease-out;
}
100% {
box-shadow: 0 0 10px 10px rgba(255, 0, 255, 100%);
-webkit-animation-timing-function: ease-in;
-webkit-animation-timing-function: ease-out;
}
}

@keyframes dimm2 {
0% {
box-shadow: 0 0 10px 10px rgba(0, 255, 255, 100%);
-webkit-animation-timing-function: ease-in;
-webkit-animation-timing-function: ease-out;
}
25% {
box-shadow: 0 0 10px 10px rgba(0, 255, 255, 50%);
-webkit-animation-timing-function: ease-in;
-webkit-animation-timing-function: ease-out;
}
50% {
box-shadow: 0 0 10px 10px rgba(0, 255, 255, 25%);
-webkit-animation-timing-function: ease-in;
-webkit-animation-timing-function: ease-out;
}
75% {
box-shadow: 0 0 10px 10px rgba(0, 255, 255, 75%);
-webkit-animation-timing-function: ease-in;
-webkit-animation-timing-function: ease-out;
}
100% {
box-shadow: 0 0 10px 10px rgba(0, 255, 255, 100%);
-webkit-animation-timing-function: ease-in;
-webkit-animation-timing-function: ease-out;
}
}
35 changes: 35 additions & 0 deletions include.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,20 @@ let cards = [
author: 'Carolyn Nagau aka Nekimuntu',
githubLink: 'https://github.com/nekimuntu'
},
{
artName: 'Dragon Balls Radar',
pageLink: './Art/nekimuntu/index.html',
imageLink: './Art/nekimuntu/RadarDragonBalls.gif',
author: 'Carolyn Nagau aka Nekimuntu',
githubLink: 'https://github.com/nekimuntu'
},
{
artName: 'Dragon Balls Radar',
pageLink: './Art/nekimuntu/index.html',
imageLink: './Art/nekimuntu/RadarDragonBalls.gif',
author: 'Carolyn Nagau aka Nekimuntu',
githubLink: 'https://github.com/nekimuntu'
},
{
artName: 'Spooky',
pageLink: './Art/spooky/index.html',
Expand All @@ -72,6 +86,20 @@ let cards = [
author: 'Pazyxx',
githubLink: 'https://github.com/Pazyxx'
},
{
artName: 'Spooky',
pageLink: './Art/spooky/index.html',
imageLink: './Art/spooky/GHOST.gif',
author: 'Mike',
githubLink: 'https://github.com/Mednalig'
},
{
artName: 'Spooky',
pageLink: './Art/spooky/index.html',
imageLink: './Art/spooky/GHOST.gif',
author: 'Mike',
githubLink: 'https://github.com/Mednalig'
},
{
artName: 'Loader Animation',
pageLink: './Art/tarunmankar/index.html',
Expand Down Expand Up @@ -3440,6 +3468,13 @@ let cards = [
imageLink: './Art/Fireworks/Fireworks.gif',
author: 'Connor',
githubLink: 'https://github.com/Connor-Csoky'
},
{
artName: 'Portball',
pageLink: './Art/Anrich/index.html',
imageLink: './Art/Anrich/Portball.gif',
author: 'Anrich',
githubLink: 'https://github.com/AnrichV'
}
];

Expand Down

0 comments on commit 47e0928

Please sign in to comment.