Replace button icon with GIF

I quite like this GIF example and this triggered the thought it might be cool to use a GIF instead of an icon on a button. So the request is for a button component, the option to choose between an icon or a custom URL for an image/GIF.