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 #449 from zero-to-mastery/webdesign4ever-WebAnim
Browse files Browse the repository at this point in the history
Webdesign4ever web anim
  • Loading branch information
l-white committed Aug 9, 2023
2 parents 47e0928 + 4012fab commit 2cd47f4
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 0 deletions.
Binary file added Art/webdesign4ever/animation.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions Art/webdesign4ever/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>

<body>
<br />
<div id="ts3"></div>
</body>
</html>
78 changes: 78 additions & 0 deletions Art/webdesign4ever/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
#ts3 {
width: 100px;
height: 100px;
background-color: red;
position: relative;
animation-name: example2;
animation-duration: 4s;
animation-delay: 1s;
animation-direction: alternate-reverse;
animation-iteration-count: infinite;
}

@keyframes example2 {
0% {
background-color: red;
left: 0%;
top: 0px;
transform: rotate(360deg);
}

25% {
background-color: yellow;
left: 90%;
top: 0px;
transform: rotate(270deg);
}

50% {
background-color: black;
left: 90%;
top: 450px;
transform: rotate(180deg);
}

75% {
background-color: aquamarine;
top: 450px;
left: 0px;
transform: rotate(90deg);
}

100% {
background-color: red;
left: 0%;
top: 0px;
}
}

body {
animation-name: example;
animation-duration: 4s;
animation-delay: 1s;
background-color: blueviolet;
animation-direction: alternate-reverse;
animation-iteration-count: infinite;
}

@keyframes example {
0% {
background-color: blueviolet;
}

25% {
background-color: aquamarine;
}

50% {
background-color: coral;
}

75% {
background-color: gold;
}

100% {
background-color: lightblue;
}
}
7 changes: 7 additions & 0 deletions include.js
Original file line number Diff line number Diff line change
Expand Up @@ -3475,6 +3475,13 @@ let cards = [
imageLink: './Art/Anrich/Portball.gif',
author: 'Anrich',
githubLink: 'https://github.com/AnrichV'
},
{
artName: 'webdesign4ever-animation',
pageLink: './Art/webdesign4ever/index.html',
imageLink: './Art/webdesign4ever/animation.gif',
author: 'webdesign4ever',
githubLink: 'https://github.com/webdesign4ever'
}
];

Expand Down

0 comments on commit 2cd47f4

Please sign in to comment.