Skip to content

Commit

Permalink
Merge pull request #35 from JonathanAllisson/comets
Browse files Browse the repository at this point in the history
comets animation
  • Loading branch information
pulkit-30 authored Oct 5, 2021
2 parents 3eade6d + a2e95f2 commit dd7d3c5
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Comets Animation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Comets
<img src="./comets.png">
by [JonathanAllisson](https://github.com/JonathanAllisson)
Binary file added Comets Animation/comets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions Comets Animation/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!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="./styles.css">
<title>Comets</title>
</head>
<body>
<div class="container">
<div class="stone"></div>
<div class="stone"></div>
<div class="stone"></div>
<div class="stone"></div>
<div class="stone"></div>
<div class="stone"></div>
<div class="stone"></div>
<div class="stone"></div>
</div>
</body>
</html>
83 changes: 83 additions & 0 deletions Comets Animation/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}

.container {
height: 100vh;
width: 100%;
background: rgb(21, 0, 61);
}

.stone {
position: absolute;
width: 10px;
height: 140px;
background: linear-gradient(to top, #384284, transparent);
top: 100px;
left: 100px;
border-radius: 50px;
opacity: 0;
animation: stone 7s ease 0s infinite;
}
@keyframes stone {
from {
transform: translateY(-500%);
opacity: 1;
}
to {
transform: translateY(500%);
opacity: .3;
}
}

.stone:nth-child(2){
top: 320px;
left: 400px;
animation-delay: .7s;
animation-duration: 6s;
}
.stone:nth-child(3){
top: 520px;
left: 200px;
animation-delay: .5s;
animation-duration: 3s;
}
.stone:nth-child(4){
top: 120px;
right: 100px;
left: inherit;
animation-delay: .2s;
animation-duration: 4s;
}
.stone:nth-child(5){
top: 320px;
right: 400px;
left: inherit;
animation-delay: .3s;
animation-duration: 7s;
}
.stone:nth-child(6){
top: 520px;
right: 200px;
left: inherit;
animation-delay: .8s;
animation-duration: 7s;
}
.stone:nth-child(7){
top: 0;
left: 40%;
animation-delay: .5s;
animation-duration: 4s;
}
.stone:nth-child(8){
top: 400px;
left: 55%;
animation-delay: .9s;
animation-duration: 6s;
}
.stone:nth-child(even){
background: linear-gradient(to top, #384fde, transparent);
box-shadow: 0 4px 94px #384fde;
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
| Loading Balls Animation | https://pulkit203.github.io/LoadingBalls/ |
| Automatic Image Slider Animation|https://palaksharma23.github.io/Automatic-Image-Changing-Animation/ |
| Confetti Animation | https://anjali1102.github.io/confetti_animation/ |
| Comets Animation | https://jonathanallisson.github.io/Comets/ |
---

![Project Intro Gif](./Gif.gif)
Expand Down

0 comments on commit dd7d3c5

Please sign in to comment.