Improved mask/shadow animation duration when the status bar height chang...

...es so it matches the height change duration.