https://www.screentogif.com/
I use that, pretty happy about it, see the number of gifs I posted recently
It's possible. It's a bit complex to put in place, @Freagarach might tell you more. I recently created a ticket for knockback. One can imagine that a unit suffering from knockback might only play a specific animation.