Skip to content

Commit

Permalink
added loader animation (#1787)
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
sandilya27 and sophiabrandt committed Oct 3, 2023
1 parent 5625ece commit b718cdd
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 0 deletions.
45 changes: 45 additions & 0 deletions Art/C S Sachindra/loader.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}

html,body{
height: 100%;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
background-color: #252A34;
}

.circle-outer{
display: flex;
align-items: center;
justify-content: center;
height: 100px;
width: 100px;
border-radius: 50%;
border: 2px solid #454545;
border-top: 2px solid #FF6000;
animation: load 2s linear infinite;
}

.circle-inner{
width: 70px;
height: 70px;
border-radius: 50%;
border: 2px solid #454545;
border-top: 2px solid #FFA559;
animation: load 2s linear infinite;
}

@keyframes load{
0%{
transform: rotate(0deg);
}
100%{
transform: rotate(360deg);
}
}

Binary file added Art/C S Sachindra/loader.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions Art/C S Sachindra/loader.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!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="loader.css">
<title>Loader animation</title>
</head>
<body>
<div class="container">
<div class="circle-outer">
<div class="circle-inner"></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/C S Sachindra/loader.html',
imageLink: './Art/C S Sachindra/loader.gif',
author: 'C S Sachindra',
githubLink: 'https://github.com/sandilya27'
},
{
artName: 'Seven Segment Display',
pageLink: './Art/Ankesh/segment-display.html',
Expand Down

0 comments on commit b718cdd

Please sign in to comment.