index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Loading...</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div class="content">
<h2>water</h2>
<h2>water</h2>
</div>
</body>
</html>
style.css
*{
padding: 0;
margin: 0;
font-family: 'Courier New', Courier, monospace;
}
body{
display: flex;
height: 100vh;
justify-content: center;
align-items: center;
background: #121213;
}
div.content{
position: relative;
}
div.content h2{
position: absolute;
transform: translate(-50%,-50%);
font-size: 8em;
/* color: #fff; */
}
div.content h2:nth-child(1){
color: transparent;
-webkit-text-stroke: 3px #03a9f4;
}
div.content h2:nth-child(2){
color: #03a9f4;
animation: animate 4s ease-in-out infinite;
}
@keyframes animate{
0%,100%{
clip-path: polygon(0 56%, 15% 46%, 31% 54%, 49% 46%, 65% 60%, 81% 50%, 100% 51%, 100% 100%, 0% 100%);
}
50%{
clip-path: polygon(1% 36%, 16% 56%, 34% 41%, 50% 57%, 70% 44%, 81% 60%, 100% 66%, 100% 100%, 0% 100%);
}
}