animated scrollTo using requestanimationframe