scroll2element
Reactive icon

Scroll2Element

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 1 Jun (4 hours ago)
 by 
0.0
 (0 ratings)
scroll2element

Scroll2Element

Documentation
1.0.0

Add the dependency to your module and drop the client action into your flow wherever the scroll should be triggered — for example in the OnReady event to scroll automatically when the screen loads, or wired to a button or link to trigger it on demand.

Parameters

  • ElementId (required, String) — ID of the target DOM element to scroll to.
  • Duration (optional, Integer) — Scroll animation duration in milliseconds. Default: 1000. Use 0 for instant scroll.
  • Offset (optional, Integer) — Extra scroll distance in pixels. Use a negative value to stop before the element, for example to account for a fixed header. Use a positive value to scroll past it. Default: 0.