Ad Break Widget
Shows the widgets nested inside it only while a Twitch ad break is running. Use it for a "be right back" card, a sponsor message or an ad countdown, or turn on Invert to hide something (like your webcam frame) during ads.
Add it from Add Widget → Primitives → Ad Break and nest your widgets inside. They fade in when a break starts and hide when its duration elapses.
Settings
| Setting | Description |
|---|---|
| Linger after ad | Extra seconds to keep showing after the ad ends (default 0). |
| Fade duration | Fade in/out time, in milliseconds. |
| Invert | Show the nested widgets only while there is no ad break. |
| Backdrop | 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.
| Variable | Description |
|---|---|
`{{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 has a full walkthrough of displaying values.