updated scroll animation with velocity