Constructor
# new Marquee(el, optionsopt)
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
el |
jQuery
|
HTMLElement
|
jQuery object or HTMLElement instance of the marquee wrapper | ||
options |
Marquee#MarqueeOptions
|
<optional> |
{} | Options for the marquee |
Example
const marquee = new Marquee($(".marquee"), {});
// or
const marquee = new Marquee(document.querySelector(".marquee")), {});
Methods
Type Definitions
Object
# MarqueeOptions
Marquee options
Properties:
| Name | Type | Description |
|---|---|---|
speed |
number
|
|
direction |
'left'
|
'right'
|
|
pauseOnHover |
boolean
|