To add gifs to your content on LinkedIn:
Save your gif to your files via a site like giphy; Go to LinkedIn and after going through the connection box, start writing a post, thanks to the "Start a post" bubble; To add your gif, click on "Add an image / photo", and select the saved gif.