CSS Swep

Im trying to make a CSS swep but I still dont know how that works so I wanted to get busy with the custom w_model but the thing is; I don’t know how to do that either
so if anyone can explain how to make like a weapon with stuff that can be moved around (Like a pump for a shotgun or the slide from a pistol)