Skip to content

Commit

Permalink
Merge pull request #1801 from zero-to-mastery/CDay-87-CDay-87
Browse files Browse the repository at this point in the history
C day 87 c day 87
  • Loading branch information
l-white committed Oct 2, 2023
2 parents 2cddfc6 + dea0c2d commit 0654eed
Show file tree
Hide file tree
Showing 4 changed files with 130 additions and 0 deletions.
Binary file added Art/CDay-87/Bounce_Animation.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/CDay-87/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" />
<title>Bouncing Screensaver</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div class="bg-gradient"></div>
<div class="el-wrap x"><b></b></div>
<img
class="el y"
src="https://github.com/avatars/u/35373879?s=200&v=4"
alt="ZTM Logo"
/>
</body>
</html>
105 changes: 105 additions & 0 deletions Art/CDay-87/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
html,
body {
margin: 0;
padding: 0;
}

.bg-gradient {
height: 100vh;
width: 100%;
background-image: linear-gradient(#e7266c, #2ac075);
}

:root {
--width: 300px;
--x-speed: 13s;
--y-speed: 7s;
--transition-speed: 2.2s;
}

var {
width: var(--width);
height: var(--width);
}

img {
display: block;
width: 100px;
height: 100px;
border-radius: 50%;
position: absolute;

-webkit-animation: moveX 8s linear 0s infinite alternate,
moveY 7.6s linear 0s infinite alternate;
-moz-animation: moveX 8s linear 0s infinite alternate,
moveY 7.6s linear 0s infinite alternate;
-o-animation: moveX 8s linear 0s infinite alternate,
moveY 7.6s linear 0s infinite alternate;
animation: moveX 8s linear 0s infinite alternate,
moveY 7.6s linear 0s infinite alternate;
}

@-webkit-keyframes moveX {
from {
left: calc(100% - 100px);
}
to {
left: 0;
}
}
@-moz-keyframes moveX {
from {
left: calc(100% - 100px);
}
to {
left: 0;
}
}
@-o-keyframes moveX {
from {
left: calc(100% - 100px);
}
to {
left: 0;
}
}
@keyframes moveX {
from {
left: calc(100% - 100px);
}
to {
left: 0;
}
}
@-webkit-keyframes moveY {
from {
top: 0;
}
to {
top: calc(100% - 100px);
}
}
@-moz-keyframes moveY {
from {
top: 0;
}
to {
top: calc(100% - 100px);
}
}
@-o-keyframes moveY {
from {
top: 0;
}
to {
top: calc(100% - 100px);
}
}
@keyframes moveY {
from {
top: 0;
}
to {
top: calc(100% - 100px);
}
}
7 changes: 7 additions & 0 deletions include.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ let cards = [
imageLink: './Art/ChipoJ/star_fall.gif',
author: 'ChipoJ',
githubLink: 'https://github.com/Chipoj'
},
{
artName: 'Bouncing Screensaver',
pageLink: './Art/CDay-87/index.html',
imageLink: './Art/CDay87/Bounce_Animation.gif',
author: 'CDay-87',
githubLink: 'https://github.com/CDay-87'
}
];

Expand Down

0 comments on commit 0654eed

Please sign in to comment.