AnimationUtils

Utilities for working with animations.
Source:

Methods

(static) scrollTo(el, positionopt, durationopt, axisopt) → {void}

Rounds a given number down to the nearest specified number.
Source:
Parameters:
Name Type Attributes Default Description
el String | Element The selector or element to scroll to.
position Number <optional>
0 The position to scroll the element to.
duration Number <optional>
400 The time (in milliseconds) to scroll.
axis String <optional>
'y' The axis to scroll on.
Returns:
Type
void
AnimationUtils.scrollTo(window, 0, 1000);