center text horizontally in 12h mode and animate transitions