gear3D
Flarum has a extension utilizing markdown - I'm using that syntax to display the gif
Like so?

As for recording it, I used a screen recorder and this fancy little one-liner for bash I just wrote (read - linux) to convert to gif with ffmpeg
ffgif() { ffmpeg -y -i "$1" -vf fps=10,scale=320:-1:flags=lanczos,palettegen pal.png && ffmpeg -i "$1" -i pal.png -filter_complex "fps=10,scale=320:-1:flags=lanczos[x];[x][1:v]paletteuse" "${1%.*}".gif; rm pal.png; }