How can I sync an animated gif from Photos.app on a Mac to an iPhone?
Apple Photos appears to support GIF but not animated GIF.

https://support.apple.com/en-us/HT204264

I suggest you try a different cloud solution for your animated GIFs like Dropbox or Google Drive.