added delay option in caption transition