Animate mode switching

This makes switching between modes i.e.,
camera to video etc. have smoother animations

Credits: John Reck

Change-Id: I26e8e12d2867c45cea5e5e0a2a63421c7373399d