How to animate a mesh of a tool inside of a ViewModel

Hello, so i’ve been wondering how I can manage to animate a mesh of a ViewModel for example in this video right here from Energy Assault:

Video

I do know about this tutorial but this is only for tools and not for viewmodels. Are there any ways I can achieve this? Any help is appreciated