add transition class