adjust border animation