Genie getting sucked into lamp/Ghostbusters Ghost Trap like effect?

Hi!, I was wondering, if anyone would know a way of being able to make an NPC being sucked into an object like a genie gets sucked into a bottle/A Ghost in Ghostbusters getting sucked into the Ghost Trap?

Its mainly like the effect in Jumanji:

Thats kind of the effect where going for, for the NPC character is a genie, and her health bar does diminish to the point where she returns to her container.

If anyone has ideas, it would be of great help!

Info:
Were Using a Combo of Java and C#, But mainly Java for the most part! We are using 3DS max as our 3D modeling program and animation program!

Thanks!
-SN

Sounds like a job for a vertex shader maybe?