Added a fadein and fadeout effect for the caption