scroll
Actions to add scrolling behavior, like custom scrolling or scroll into view.
See
Functions
horizontalScroll()
Adds horizontal scrolling to an element.
This action removes the needs to press ctrl or right to scroll horizontally.
Type Parameters
• Node extends HTMLElement
Parameters
• …args: [Node
, object
]
Returns
void
| ActionReturn
<undefined
| object
, Record
<never
, any
>>
svelte action
Defined in
tmp/commons/src/lib/actions/scroll.ts:22
scrollIntoView()
Scrolls into view an element.
Type Parameters
• Node extends HTMLElement
Parameters
• …args: [Node
, boolean
]
Returns
void
| ActionReturn
<undefined
| boolean
, Record
<never
, any
>>