Skip to content

Commit

Permalink
added loader animation (#1791)
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
abhishekl1289 and sophiabrandt committed Oct 3, 2023
1 parent 61c7123 commit 900a91c
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 0 deletions.
50 changes: 50 additions & 0 deletions Art/Abhishek/animation.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
* {
margin: 0%;
padding: 0%;
box-sizing: border-box;
}

html,
body {
width: 100%;
height: 100%;
}

.main {
background-color: black;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}

.loader {
display: flex;
gap: 20px;
}

.circle {
width: 10px;
height: 10px;
background-color: aqua;
border-radius: 50%;
}

.loader div:nth-child(1) {
animation: loader 0.9s ease-in-out alternate infinite;
}

.loader div:nth-child(2) {
animation: loader 0.9s ease-in-out alternate 0.3s infinite;
}

.loader div:nth-child(3) {
animation: loader 0.9s ease-in-out alternate 0.6s infinite;
}

@keyframes loader {
100% {
transform: scale(2);
}
}
Binary file added Art/Abhishek/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/Abhishek/animation.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>Animation</title>
<link rel="stylesheet" href="animation.css" />
</head>
<body>
<div class="main">
<div class="loader">
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
</div>
</div>
</body>
</html>
7 changes: 7 additions & 0 deletions include.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ let cards = [
author: 'Ibaad',
githubLink: 'https://github.com/ibaaddurrani'
},
{
artName: 'Loader Animation',
pageLink: './Art/Abhishek/animation.html',
imageLink: './Art/Abhishek/animation.gif',
author: 'Abhishek Kumar',
githubLink: 'https://github.com/abhishekl1289'
},
{
artName: 'Fan',
pageLink: './Art/Samriddhi/fan.html',
Expand Down

0 comments on commit 900a91c

Please sign in to comment.