Skip to content

Commit

Permalink
Merge pull request Ayushparikh-code#414 from perveen-neha/wavy-loader…
Browse files Browse the repository at this point in the history
…-perveen-neha

wavy loader to understand css animations
  • Loading branch information
Ayushparikh-code authored Nov 5, 2021
2 parents 6fdf4ef + 3bbe755 commit 5c9a4e6
Show file tree
Hide file tree
Showing 3 changed files with 217 additions and 0 deletions.
31 changes: 31 additions & 0 deletions wavy-Loader/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<h1>wavy loader css animation</h1>



### Use of the Project:

<p> learn about css animations</p>

<h3>Used Technologies</h3>
<ul>
<li>HTML5</li>
<li>CSS3</li>
</ul>

#### Steps to Use:

---

- Download or clone the repository

```
git clone https://github.com/Ayushparikh-code/Web-dev-mini-projects.git
```

- Go to the directory
- Run the index.html file
- Start Typing!

<h3> Screenshots </h3>
<img src = "https://github.com/ayushseth07/Web-dev-mini-projects/blob/patch/Virtual%20Keyboard/snap.PNG" />
<br>
29 changes: 29 additions & 0 deletions wavy-Loader/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!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>Wavy Circle Loader Using CSS Animations</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="circle">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</body>
</html>
157 changes: 157 additions & 0 deletions wavy-Loader/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
* {
padding: 0;
margin: 0;
}
body {
background-color: blueviolet;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.circle {
height: 300px;
width: 300px;
position: relative;
transform-style:preserve-3d ;
/* transform: perspective(500px) rotateX(60deg); */
}
.circle span {
border: 5px solid white;
border-radius: 50%;
position: absolute;
display: block;
box-shadow: 0 5px 0 #ccc,
inset 0 5px 0 #ccc;
box-sizing: border-box;
animation: load 3s ease-in-out infinite ;
}
@keyframes load{
0%, 100%{
transform: translateY(-100px);
}
50%{
transform: translateY(100px);
}
}
.circle span:nth-child(1)
{
top: 0;
bottom: 0;
left: 0;
right: 0;
animation-delay: 1.4s;
}
.circle span:nth-child(2)
{
top: 10px;
bottom: 10px;
left: 10px;
right: 10px;
animation-delay:1.3s;
}
.circle span:nth-child(3)
{
top: 20px;
bottom: 20px;
left: 20px;
right: 20px;
animation-delay: 1.2s;
}
.circle span:nth-child(4)
{
top: 30px;
bottom: 30px;
left: 30px;
right: 30px;
animation-delay: 1.1s;
}
.circle span:nth-child(5)
{
top: 40px;
bottom: 40px;
left: 40px;
right: 40px;
animation-delay: 1.0s;
}
.circle span:nth-child(6)
{
top: 50px;
bottom: 50px;
left: 50px;
right: 50px;
animation-delay: 0.9s;
}
.circle span:nth-child(7)
{
top: 60px;
bottom: 60px;
left: 60px;
right: 60px;
animation-delay: 0.8s;
}
.circle span:nth-child(8)
{
top: 70px;
bottom: 70px;
left: 70px;
right: 70px;
animation-delay: 0.7s;
}
.circle span:nth-child(9)
{
top: 80px;
bottom: 80px;
left: 80px;
right: 80px;
animation-delay: 0.6s;
}
.circle span:nth-child(10)
{
top: 90px;
bottom: 90px;
left: 90px;
right: 90px;
animation-delay: 0.5s;
}
.circle span:nth-child(11)
{
top: 100px;
bottom: 100px;
left: 100px;
right: 100px;
animation-delay: 0.4s;
}
.circle span:nth-child(12)
{
top: 110px;
bottom: 110px;
left: 110px;
right: 110px;
animation-delay: 0.3s;
}
.circle span:nth-child(13)
{
top: 120px;
bottom: 120px;
left: 120px;
right: 120px;
animation-delay: 0.2s;
}
.circle span:nth-child(14)
{
top: 130px;
bottom: 130px;
left: 130px;
right: 130px;
animation-delay: 0.1s;
}
.circle span:nth-child(15)
{
top: 140px;
bottom: 140px;
left: 140px;
right: 140px;
animation-delay: 0s;
}

0 comments on commit 5c9a4e6

Please sign in to comment.