added transition for floating