update line animation