Skip to content

Commit

Permalink
Smoke Effect (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahulagg13 authored Oct 19, 2022
1 parent b7943a5 commit 909cfee
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
25 changes: 25 additions & 0 deletions smoke effect/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!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>Smoke Effect</title>
<link rel="stylesheet" href="style.css">
</head>

<body>
<div class="center">

<ul>
<li>S</li>
<li>M</li>
<li>O</li>
<li>K</li>
<li>E</li>
</ul>
</div>
</body>

</html>
55 changes: 55 additions & 0 deletions smoke effect/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
*{
margin:0;
padding:0;
font-family: verdana;
background: #262626;
}
.center{
position: absolute;
top:50%;
left:50%;
transform: translate(-50%,-50%);
}

ul{
margin: 0;
padding:0;
display: flex;
}
ul li{
list-style: none;
color : #fff;
font-size: 6em;
font-weight: bold;
letter-spacing: 10px;
filter: blur(1px);
}
ul:hover li{
animation: animate 2s linear forwards;
}

@keyframes animate{
0%{
transform : rotate(0deg) translateY(0px);
}
100%{
transform : rotate(45deg) translateY(-200px);
opacity: 0;
filter: blur(1px);
}
}
ul li:nth-child(1){
animation-delay:0s;
}
ul li:nth-child(2){
animation-delay:0.4s;
}
ul li:nth-child(3){
animation-delay:0.8s;
}
ul li:nth-child(4){
animation-delay:1.2s;
}
ul li:nth-child(5){
animation-delay:1.6s;
}

0 comments on commit 909cfee

Please sign in to comment.