Function

useTimelineTimePosition

Imperatively positions a low-count DOM affordance at a timeline time. The returned transform is viewport-space: `seconds * zoomScale - scrollLeft`. Use it for standalone affordances such as the playhead grabber. Range controls that already live inside a transformed timeline overlay should use their local control primitive positioning instead.

Signature

Type Definition
useTimelineTimePosition(options: UseTimelineTimePositionOptions): UseTimelineTimePositionResult<T>

Type parameters

NameConstraintDefaultDescription
THTMLElementNoneNo type parameter summary yet.

Parameters

NameTypeDescription
optionsUseTimelineTimePositionOptionsTimeline engine, time value, and events that should refresh the transform.

Returns

Ref and imperative updater for the positioned element.