Improved mask/shadow animation duration when the status bar height changes so it matches the height change duration.