Custom Animations

Is there a way i can make custom animations from a resource pack on the player? like pulling out a sword or when you click and hit a mob or anything

Continue to help post