Skip to main content

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​

SettingWhat it does
AnimationHow it enters and leaves: Fade, Slide (up/down/left/right), Zoom, Roll or Bloom.
EasingThe acceleration curve of the animation.
In / Out durationHow long the enter and exit animations take.
HoldHow long the alert stays on screen. It also waits for any alert audio to finish.
BackdropA background colour behind the alert.

Layout​

SettingWhat it does
LayoutText below the image, above it, to its left, to its right, or over the top of it.
Show textTurn the message off for an image-only alert.
Show imageTurn the image off for a text-only alert.
Text spaceHow much of the alert the message gets; the image takes the rest.
Gap between image and textSpace 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.

note

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​

SettingWhat it does
FontThe typeface the message is set in.
SizeText size in pixels.
WeightLight through Black.
ItalicSlants the message.
ColourA solid colour or a gradient fill.
HighlightThe colour for any part of the message wrapped in <hl>…</hl>. See Highlighting part of the message.
Outline 1 / sizeAn outline around the letters. Size 0 turns it off.
Drop shadowA soft shadow behind the message.
AlignLeft, centre or right.
Line heightSpacing between wrapped lines.
Letter spacingSpacing between characters.

Alert image​

SettingWhat it does
FitHow the image fills its box: Contain, Cover, Fill or None.
ScalingSmooth, or Pixelated to keep pixel art sharp.
OpacityHow 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>!
note

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.

See also​