-
-
Save caraya/5364b3b6638284e3594f50f9f3f7e756 to your computer and use it in GitHub Desktop.
svg displacement animation
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
<filter id="displacement" filterUnits="objectBoundingBox"> | |
<feTurbulence type="turbulence" baseFrequency="0.01" numOctaves="2" result="turb"/> | |
<feColorMatrix in="turb" result="huedturb" type="hueRotate" values="90"> | |
<animate attributeType="XML" attributeName="values" values="0;180;360" dur="6s" repeatCount="indefinite"/> | |
</feColorMatrix> | |
<feDisplacementMap in="SourceGraphic" in2="huedturb" scale="20" result="displace" xChannelSelector="B"/> | |
<feOffset dx="-5" dy="-5" in="displace" result="unoffsetdisplace"/> | |
</filter> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment