how to use transitions in production