Skip to content

r3f-xr-widgets / ControlPanelAutoFade

Function: ControlPanelAutoFade()

ControlPanelAutoFade(allProps): Element | null

Defined in: src/components/ControlPanelAutoFade.tsx:29

A smart wrapper around ControlPanelCard that handles auto-fade behavior.

  • Fades out after fadeDelay ms when video is playing
  • Stays visible when paused or hovered
  • Encapsulates all auto-fade logic so players don't need to implement it

Parameters

allProps

ControlPanelAutoFadeProps

Returns

Element | null

Released under the MIT License.