Skip to content

Commit

Permalink
Loading Page Animation (#2401)
Browse files Browse the repository at this point in the history
* Create index.html

* Add files via upload

* Update include.js

* Delete Art/SaumyaKumar-09/Animation 4/Gif4.mp4

* Add files via upload

* Update include.js
  • Loading branch information
SaumyaKumar-09 committed Oct 31, 2023
1 parent 1751f7c commit 75b483a
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 0 deletions.
Binary file added Art/SaumyaKumar-09/Animation 4/Animation4.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions Art/SaumyaKumar-09/Animation 4/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Loading Page - Animation</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="loading">
<span>Loading...</span>
</div>
</body>
</html>
64 changes: 64 additions & 0 deletions Art/SaumyaKumar-09/Animation 4/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
body {
margin: 0px;
padding: 0px;
background: #34495e;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
font-family: "montserrat",sans-serif;
}

.loading {
width: 200px;
height: 200px;
box-sizing: border-box;
border-radius: 50%;
border-top: 10px solid #e74c3c;
position: relative;
animation: a1 2s linear infinite;
}

.loading::before,
.loading::after {
content: '';
width: 200px;
height: 200px;
position: absolute;
left: 0px;
top: -10px;
box-sizing: border-box;
border-radius: 50%;
}

.loading::before{
border-top: 10px solid #e67e22;
transform: rotate(120deg);
}

.loading::after{
border-top: 10px solid #3498db;
transform: rotate(240deg);
}

.loading span {
position: absolute;
width: 200px;
height: 200px;
color: #fff;
text-align: center;
line-height: 200px;
animation: a2 2s linear infinite;
}

@keyframes a1 {
to{
transform: rotate(360deg);
}
}

@keyframes a2 {
to{
transform: rotate(-360deg);
}
}
7 changes: 7 additions & 0 deletions include.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ let cards = [
author: 'stormworm9',
githubLink: 'https://github.com/stormworm9'
},
{
artName: 'Loading Page',
pageLink: './Art/SaumyaKumar-09/Animation%204/index.html',
imageLink: './Art/SaumyaKumar-09/Animation%204/Animation4.gif',
author: 'SaumyaKumar-09',
githubLink: 'https://github.com/SaumyaKumar-09'
},
{
artName: 'Elevator Ride',
pageLink: './Art/deverestHood/index.html',
Expand Down

0 comments on commit 75b483a

Please sign in to comment.