ScrollSmoother.get
ScrollSmoother.get( ) : ScrollSmoother
Returns the ScrollSmoother instance (if one has been created). There can only be one instance at any given time.
Details
Returns the ScrollSmoother instance (if one has been created). There can only be one instance at any given time.
let smoother = ScrollSmoother.create({...});
// then later, you can get that instance (perhaps in another file) like this:
let previouslyCreatedSmoother = ScrollSmoother.get();