How do you add animations to a character or a main menu

So I have been trying to figure out animations because they add life to your game but I don’t know how to add these animations? One specific animation is for a main menu like that of FNAF where you have a main menu with a camera static animation and freddy doing the occasional animation. How would you do something like that?