.wrapper
.wrapper( element:String | Element ) : Element | self
Gets/Sets the wrapper element.
Parameters
element: String | Element
The element that should be used as the wrapper. You can use selector text like
"#wrapper"
or an element reference.
Returns : Element | self
The wrapper Element (or the ScrollSmoother instance if used as a setter)
Details
Gets/Sets the wrapper element.
Getter
let wrapper = smoother.wrapper();
Setter
// set the wrapper to the element with #wrapper id
smoother.wrapper("#wrapper");