Cool water text animation

Posted on October 16th, 2019

This is a cool water text animation with only html and css again from DarkCode. Just click on the button Run Pen below to see how it works:

How to create cool water text animation

Step 1: Add Html

<div class="middle">

Step 2: Add CSS

body {
  margin: 0;
  padding: 0;
  font-family: 'montserrat', sans-serif;
  background: url(
  background-size: cover;
.middle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
.middle h1 {
  font-size: 100px;
  text-transform: uppercase;
  font-weight: 900;
  color: #2c3e5036;
  background-image: url(;
  -webkit-background-clip: text;
  animation: water 15s infinite;
@keyframes water {
  from {
    background-position: left 0 top 0;
  to {
    background-position: left 1000px top 0;