Skip to content

Instantly share code, notes, and snippets.

@codingdudecom
Created May 25, 2020 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codingdudecom/b5e4c49a02296cba3d171144b89a9c1c to your computer and use it in GitHub Desktop.
Save codingdudecom/b5e4c49a02296cba3d171144b89a9c1c to your computer and use it in GitHub Desktop.
CSS Wavy Font Animation
<link href="https://fonts.googleapis.com/css2?family=Raleway:wght@900&display=swap" rel="stylesheet">
<h1 class="wavy-font">Wavy Font CSS</h1>
<svg width="100%" height="100%" style="display:none;">
<defs>
<filter id="wavy" filterUnits="userSpaceOnUse" x="0" y="0">
<feTurbulence id="wave-animation" numOctaves="0.1" seed="1" baseFrequency="0 0"></feTurbulence>
<feDisplacementMap scale="10" in="SourceGraphic"></feDisplacementMap>
</filter>
<animate xlink:href="#wave-animation" attributeName="baseFrequency" dur="3s" keyTimes="0;0.5;1" values="0.0 0.04;0.0 0.07;0.0 0.04" repeatCount="indefinite"/>
</defs>
</defs>
</svg>
If you need a free font that looks like this wave effect you can download the free <a href="https://www.photoshopsupply.com/layer-styles/wavy-font">wavy font</a> from <a href="https://www.photoshopsupply.com">PhotoshopSupply</a>
.wavy-font{
font-family:'Raleway';
text-transform:uppercase;
font-size:60px;
line-height:1.2em;
filter:url(#wavy)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment