add transition effect on the frames