Class: scrllmsk

scrllmsk

Simple container div for masking away native scrollbars

new scrllmsk(options){msk}

Initializes a new scrllmsk instance.
Name Type Description
options Object Options used to customize the scrllmsk
Name Type Default Description
parent * document.body optional Element which the scrllmsk's container element is appended
id String optional The id of the instance. Auto-generated when not provided
attr Object optional Attributes to apply to the scrllmsk's container element.
css Object optional CSS Properties to apply to the scrllmsk's container element
content Object optional Options used to create the scrllmsk's content element
Name Type Default Description
attr.class String 'scrllmsk-content' optional
Returns:
Type Description
msk A new scrllmsk instance.

Requires

Members

readonlycontainerHTMLElement

The container element

readonlycontentHTMLElement

The content element

Methods

staticscrllmsk.getElInstance(el){scrllmsk}

returns the scrllmsk instance associated with the provided element's id attribute
Name Type Description
el Element The element with the lookup id
Returns:
Type Description
scrllmsk The associate scrllmsk, if it exists

staticscrllmsk.getInstance(id){scrllmsk}

returns the scrllmsk instance associated with the id
Name Type Description
id String The lookup id
Returns:
Type Description
scrllmsk The associate scrllmsk, if it exists