Sheida Hedayati Maybe this link will help:
Ultimately, the process requires capturing the CSS as a screen recording / video, then creating a GIF from that captured video.
I'm not aware of another method yet.
Apologies if this has already been explained in this question. I'll remove my answer if it's redundant. I'll read the other answers later.