[PUB-257] REfactored scale transition and Document transition.