I can't remember how I got my avatar to animate lol but for my signature, I put the .gif file in an image tag and it worked for me. Like this:
< IMG >https://media.giphy.com/media/ZlprTPPAeyd0wxpNCQ/giphy.gif< /img >
With the closed brackets instead of pointy ones.