animate browser position by conditions