Fixed issue where transitions were being applied on end which caused undesired behaviour.