Skip to main content

player.scrollElement

since 0.9.6

Description

When the player is active, it by default automatically scrolls the browser window to the currently played bar. This setting defines which elements should be scrolled to bring the played bar into the view port. By default scrolling happens on the html,body selector.

player.scrollElementJavaScript
player.scrollElementJSON
data-player-scrollelementHTML

Types

TypeValues
stringJSON, JavaScript & HTMLA selector for `document.querySelector`
DOM ElementJavaScript

Default Value

html,body