Skip to main content

Ad Break Widget

The Ad Break widget reveals the widgets nested inside it only while a Twitch ad break is running. It hides them again automatically when the break ends. Great for a "be right back" card, a sponsor message, or an ad countdown — or, with Invert on, for hiding something (like your webcam frame) while ads play.

How it works

  1. Add an Ad Break widget (Add Widget → Primitives → Ad Break).
  2. Nest your widgets inside it.
  3. They're hidden by default and fade in when an ad break starts.
  4. They hide automatically once the ad break's duration elapses.
  5. Invert flips it — show the nested widgets except during ads.

Settings

SettingDescription
Linger after adExtra seconds to keep showing after the ad ends (default 0).
Fade durationFade in/out time, in milliseconds.
InvertShow the nested widgets only while there is no ad break.
BackdropOptional background colour behind the nested widgets.

Displaying the live values

Add a widget inside, then set a dynamic value (the </> toggle) — pick from the Show / Hide widget values group, or type it in.

VariableDescription
`{{subtreeContext.adBreak.durationSeconds}}`Length of the ad break, in seconds.
`{{subtreeContext.adBreak.endsAt}}`When the break ends (an ISO timestamp).
`{{subtreeContext.adBreak.active}}`true while an ad break is running.
tip

For a live "ads end in…" countdown, point a Text widget at `{{subtreeContext.adBreak.endsAt}}` — the overlay counts down to that time on its own.

See also

  • Hype Train — the same idea for Hype Trains, with a full walkthrough of displaying values.