added transition call back function which is used to hover over elements