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