easing function added to transition