If you're creating your chapter on a phone or mobile device, if you scroll to the top of your chapter where u insert the title and stuff, there should be an option above the title part, with a picture/video icon. If you press the video icon, it should bring you to a search page where you can upload a gif.