Skip to content

Instantly share code, notes, and snippets.

@hsab
Created March 19, 2018 12:06
Show Gist options
  • Save hsab/070aefc6801ce259650b361e175a7e50 to your computer and use it in GitHub Desktop.
Save hsab/070aefc6801ce259650b361e175a7e50 to your computer and use it in GitHub Desktop.
css-svg-distort.html
<svg width="0" height="0">
<defs>
<filter id="distort">
<feTurbulence baseFrequency=".001" type="fractalNoise" seed="200" />
<feColorMatrix type="hueRotate" values="0">
<animate attributeName="values" from="0" to="360" dur="8s" repeatCount="indefinite" />
</feColorMatrix>
<feDisplacementMap in="SourceGraphic" in2="main" xChannelSelector="R" yChannelSelector="B" scale="200" />
<feGaussianBlur id="blur-amount" stdDeviation="3" />
<feComponentTransfer result="main">
<feFuncA type="gamma" amplitude="100" exponent="3" />
</feComponentTransfer>
<feColorMatrix type="matrix" values="0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0" />
<feGaussianBlur stdDeviation="10" />
<feComposite operator="over" in="main" />
<feGaussianBlur stdDeviation="0" />
</filter>
</defs>
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment