Skip to content

Commit

Permalink
Added wheel loading animation
Browse files Browse the repository at this point in the history
  • Loading branch information
Sneakad committed Oct 11, 2021
1 parent 49bb23e commit 2694d80
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 0 deletions.
Empty file added Balance-Wheel Loading/README.md
Empty file.
Binary file added Balance-Wheel Loading/img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions Balance-Wheel Loading/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!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">
<link rel="stylesheet" href="style.css" />
<title>Wheel pre-loader</title>
</head>
<body>
<div class="pre-loader"></div>
</body>
<footer class="foot" >
Made by: <a href="https://github.com/Sneakad" class="name">Aditya Mondal</a> <br>
Date: 10-10-2021
</footer>
</html>
52 changes: 52 additions & 0 deletions Balance-Wheel Loading/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
body {
background: #fefae0;
}
.pre-loader {
width: 150px;
height: 50px;
margin: 100px auto 0;
border-bottom: 4px solid #0c8b00;
position: relative;
animation: animate 3s infinite linear;
}
.pre-loader:before {
content: "";
background: #fb5000;
width: 40px;
height: 45px;
position: absolute;
bottom: 0;
left: 0;
z-index: 1;
clip-path: circle(40%);
animation: animate1 3s infinite linear;
}
@keyframes animate {
0%,
100% {
transform: rotate(-20deg);
}
50% {
transform: rotate(20deg);
}
}
@keyframes animate1 {
0%,
100% {
transform: rotate(0);
left: 0;
}
50% {
transform: rotate(200deg);
left: calc(100% - 40px);
}
}
.foot {
margin: auto;
margin-top: 40vh;
color: rgb(0, 109, 211);
text-align: center;
}
.name {
color: #0071f1;
}

0 comments on commit 2694d80

Please sign in to comment.