Remove duration function from animation