How do you animate 3d models with resource pack

I have the 2 models but how do I make the resource pack cycle through the 2 models

Continue to help post