Added timing of element animation and highlighting to document