ef-scrubber

This element is a playhead scrubber.

This element is a playhead scrubber.

Attributes

AttributeReact propTypeDefaultDescription
container-widthcontainerWidthnumberExplicit container width in pixels, used in vertical orientation.
current-time-mscurrentTimeMsnumberCurrent playback time in milliseconds.
duration-msdurationMsnumberTotal duration in milliseconds.
fpsfpsnumberFrame rate used for frame-quantized calculations.
orientationorientationhorizontal | verticalLayout direction.
pixels-per-secondpixelsPerSecondnumberZoom level — pixels rendered per second of composition time.
raw-scrub-time-msrawScrubTimeMsnumber | nullUnquantized scrub position in milliseconds, updated live during a drag.
targettargetstring""ID of the target element this component controls or reads from.
zoom-scalezoomScalenumberZoom multiplier applied to vertical (timeline) scrubber sizing.

CSS Parts

PartDescription
handleThis part is the draggable circular knob.
playheadThis part is the vertical line at the current time position.
progressThis part is the filled portion. It shows the current position.
scrubberThis part is the outer track container.

CSS Custom Properties

PropertyDefaultDescription
--ef-scrubber-backgroundvar(--ef-color-border, rgba(255, 255, 255, 0.2))Unfilled track color.
--ef-scrubber-handle-size12pxDiameter of the draggable handle.
--ef-scrubber-height4pxTrack thickness.
--ef-scrubber-progress-colorvar(--ef-color-primary, #fff)Filled (progress) track color.

Events

EventDetailDescription
seeknumberThis event fires when the user drags the scrubber to a new position.