Better implementation of black fade in/out transition animation