add transition when period change