A synthetic event for CSS transitions