|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Created by Coding Hindi */ | |
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap'); | |
*{ | |
margin:0; | |
padding:0; | |
font-family:poppins; | |
} | |
body { | |
display:flex; | |
justify-content:center; | |
align-items:center; | |
min-height:100vh; | |
background:#000; | |
} | |
.wavy{ | |
position:relative; | |
-webkit-box-reflect:below -17px linear-gradient(transparent, rgba(0,0,0,0.2)); | |
} | |
.wavy span{ | |
position:relative; | |
display:inline-block; | |
color:#fff; | |
font-size:2.5em; | |
text-transform:capitalize; | |
animation:animate 3.5s ease-in-out infinite; | |
animation-delay:calc(0.1s * var(--i)); | |
} | |
@keyframes animate{ | |
0%{ | |
transform:translateY(0px); | |
} | |
40%{ | |
transform:translateY(-30px); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="wavy"> | |
<span style="--i:1;color:red">C</span> | |
<span style="--i:2;color:red">O</span> | |
<span style="--i:3;color:red">D</span> | |
<span style="--i:4;color:red">I</span> | |
<span style="--i:5;color:red">N</span> | |
<span style="--i:6;color:red">G</span> | |
<span style="--i:7;"> </span> | |
<span style="--i:8;"> </span> | |
<span style="--i:9;">H</span> | |
<span style="--i:10;">I</span> | |
<span style="--i:11;">N</span> | |
<span style="--i:12;">D</span> | |
<span style="--i:13;">I</span> | |
</div> |
A Pen by Coding Hindi on CodePen.