This page is part of a static HTML representation of the TiddlyWiki at https://tiddlywiki.com/

WidgetMessage: tm-scroll

14th October 2020 at 3:24pm

The tm-scroll message causes the surrounding scrollable container to scroll to the specified DOM node into view. The tm-scroll is handled in various places in the core itself, but can also be handled by a ScrollableWidget.

NameDescription
targetTarget DOM node the scrollable container should scroll to (note that this parameter can only be set via JavaScript code)
selectorIntroduced in v5.1.23 Optional string CSS selector as an alternate means of identifying the target DOM node
animationDurationIntroduced in v5.2.2 Optional number specifying the animation duration in milliseconds for the scrolling. Defaults to the global animation duration.

Tip
Set animationDuration to 0 to scroll without animation