ScrollIntoFocusController
Purpose
For elements that demand the user's attention, scroll an element into the view as it appears.
This controller is ephemeral, once it has performed its duty it will remove itself and all its values from the element.
Actions
Action | Purpose |
---|---|
- | - |
Targets
Target | Purpose | Default |
---|---|---|
- | - | - |
Classes
Class | Purpose | Default |
---|---|---|
- | - | - |
Values
See scrollIntoView documentation for possible values.
Note: If the user's browser does not support smooth scrolling, the browser will ignore these values and scroll using the browser default.
Value | Type | Description | Default |
---|---|---|---|
behaviour | String | One of auto , smooth | auto |
block | String | One of center , end , nearest , start | start |
inline | String | One of center , end , nearest , start | nearest |
Events
Event | When | Dispatched on | event.detail |
---|---|---|---|
- | - | - | - |
Side Effects
None
How to Use
See Also
Scroll Container Controller Scroll To Controller Scroll To Top Controller Scroll To Bottom Controller Scroll Into Focus Controller