change svg animate, to js animate