AUI-1146 Add attribute delay
AUI-1146 Source formatting
AUI-1146 Prepare the transition synchronously, otherwise it can missalign the position and cause flashing when displaying