Alert
The Alert primitive is a ready-made on-screen alert. When a follow, subscription, cheer, gift or raid happens, it animates in with the message and image for that event, then animates out. Add it from Add Widget → Primitives → Alert.
It contains a locked text element and image element, wired to the alert's message and graphic. This page covers its look and motion.
Settings
Animation
| Setting | What it does |
|---|---|
| Animation | How it enters and leaves: Fade, Slide (up/down/left/right), Zoom, Roll or Bloom. |
| Easing | The acceleration curve of the animation. |
| In / Out duration | How long the enter and exit animations take. |
| Hold | How long the alert stays on screen. It also waits for any alert audio to finish. |
| Backdrop | A background colour behind the alert. |
Layout
| Setting | What it does |
|---|---|
| Layout | Text below the image, above it, to its left, to its right, or over the top of it. |
| Show text | Turn the message off for an image-only alert. |
| Show image | Turn the image off for a text-only alert. |
| Text space | How much of the alert the message gets; the image takes the rest. |
| Gap between image and text | Space between the two, in pixels. |
Turning one off gives the whole alert to the other. Layout, Text space and Gap only appear while both are shown, and Text space and Gap also hide on text over image.
The dashed image placeholder only appears while you're designing. If a live alert has no image, that area stays empty. Turn Show image off to reclaim the space.
Message text
| Setting | What it does |
|---|---|
| Font | The typeface the message is set in. |
| Size | Text size in pixels. |
| Weight | Light through Black. |
| Italic | Slants the message. |
| Colour | A solid colour or a gradient fill. |
| Highlight | The colour for any part of the message wrapped in <hl>…</hl>. See Highlighting part of the message. |
| Outline 1 / size | An outline around the letters. Size 0 turns it off. |
| Drop shadow | A soft shadow behind the message. |
| Align | Left, centre or right. |
| Line height | Spacing between wrapped lines. |
| Letter spacing | Spacing between characters. |
Alert image
| Setting | What it does |
|---|---|
| Fit | How the image fills its box: Contain, Cover, Fill or None. |
| Scaling | Smooth, or Pixelated to keep pixel art sharp. |
| Opacity | How solid the image is. |
Size
Drag the Alert's handles and the whole alert scales: text, image and outlines grow together at a fixed aspect ratio. The Scale field in the Widget panel does the same by number.
To move the alert's parts independently, use the Alert Group.
Highlighting part of the message
Wrap part of a message in <hl>…</hl> to paint it in the Highlight colour instead of the main text colour.
New alerts highlight the name and the amount:
<hl>{{name}}</hl> just subscribed!
<hl>{{name}}</hl> gave <hl>{{bits}}</hl>: {{message}}
<hl>{{name}}</hl> raided with <hl>{{viewers}}</hl> viewers!
Change the Highlight colour to restyle all of them at once. You can move the tag anywhere by editing the message in Alerts settings:
{{name}} cheered <hl>{{bits}} bits</hl>!
Messages you had before this feature arrived have no highlight until you add the tag. Each alert type has its own message, so adding it to New Subs doesn't change Follows.
Text-to-speech ignores the tag. Without the tag, the Highlight colour does nothing. The tag also works in an Alert Group and any Text widget.
What the alert says
The message, sound and thresholds (for example a bigger alert for a larger cheer) are set in your Alerts settings. The widget controls where the alert appears and how it animates.
Locked layout
You can't drag the text and image individually or add anything alongside them. For multiple images, extra decorations, a second line in a different style or a layout none of the five presets covers, use the Alert Group.