why are you hardcoding this timeout? Is there a UX spec saying 1 second? Can you use an ontransitionend event handler to remove it whenever your CSS transition is done instead?