add requestanimationframe