make animation smooth and add animationrate