Phox Elements
NOTIFICATIONS Toast messages for Breakdance

Show short messages without interrupting the page

Toast Notification shows a small message in a corner of the screen. It can appear when the page loads, when the visitor scrolls, or when they click a button you choose. It closes itself after a set time, or waits for the visitor to close it.

Five toast types Three triggers Don't show again option
Live demo

Click a button to show a toast

Each button triggers a different toast type in a different corner of the screen. Click as often as you like.

A success toast also appeared 1.5 seconds after the page loaded, and an info toast appears once you scroll a quarter of the way down the page.

How it works

Three steps to a toast

One element per message.

1

Add the element

Drop Toast Notification anywhere on the page. It stays hidden until its trigger fires.

2

Write the message

Enter the message, pick a type and choose which corner of the screen it appears in.

3

Choose the trigger

Show it on page load, after the visitor scrolls, or when they click any element that matches a CSS selector.

Features

Everything a toast needs

Simple messages with sensible options.

Five types

Info, Success, Warning and Error each have their own colours and icon. Custom lets you pick your own icon.

Four positions

Top right, top left, bottom right or bottom left.

Page load trigger

Show the toast after the page loads, with an optional delay.

Scroll trigger

Show the toast once the visitor has scrolled a quarter of the way down the page.

Button click trigger

Show it when the visitor clicks any element matching your CSS selector. Turn on Show Every Click to repeat it.

Auto dismiss

Close the toast after a set time, with a progress line that shrinks as the time runs out.

Don't show again

Set a number of days. Once closed, the toast stays hidden for that visitor until the time is up.

Dynamic message

The message accepts dynamic data, such as a custom field or the post title.

Full styling

Background, text, accent and icon colours, icon size, max width, typography and borders.

Use cases

Where it works best

Short messages that should be seen but not get in the way.

01

Announcements

Mention a sale, a new product or opening hours on page load.

02

Form feedback

Confirm an action when a visitor clicks a button.

03

Scroll nudges

Point readers to a newsletter or offer once they are engaged with the page.

04

Stock and delivery notes

Show a warning about stock or delivery times on product pages.

05

Cookie or policy notices

Show a short notice once and hide it for a set number of days after it is closed.

06

Onboarding tips

Explain a feature when a visitor clicks a help icon.

Settings reference

Every control, explained

This is the full list of settings in the Breakdance editor, with their default values.

ControlWhat it doesDefault
Content
Preview in BuilderShow the toast inside the builder so you can style it.On
MessageThe toast text. Accepts dynamic data.This is a notification message!
TypeInfo, Success, Warning, Error or Custom.Info
Custom IconIcon used when Type is Custom.—
PositionTop Right, Top Left, Bottom Right or Bottom Left.Top Right
Show IconShow the type icon.On
Show Close ButtonShow a cross to close the toast.On
TriggerPage Load, Scroll or Button Click.Page Load
Button CSS SelectorElements that open the toast when clicked, e.g. .my-button.—
Show Every ClickShow the toast on every click, not just the first.Off
Auto DismissClose the toast automatically.On
Dismiss After (ms)How long the toast stays open.5000
Delay (ms)Wait before showing the toast once triggered.1000
Don't Show Again (days)Hide the toast for this many days after it closes. 0 shows it every time.0
Toast Style
Background, Text, Accent, Icon coloursOverride the colours of the chosen type.—
Icon SizeSize of the icon, 12 to 48px on the slider.—
Max WidthMaximum width of the toast.400px
Typography, BordersText style and borders.—
Tips & FAQ

Good to know

How do I open a toast from my own button?

Give the button a class, such as show-offer, set Trigger to Button Click and enter .show-offer as the Button CSS Selector. Any element matching the selector will open the toast.

Can I stop a toast showing on every visit?

Yes. Set Don't Show Again to a number of days. Once the visitor closes it, or it closes itself, it stays hidden for that visitor until the days are up.

Can I show several toasts on one page?

Yes. Add one element per message, each with its own trigger and position, as on this page.

When does the scroll trigger fire?

Once the visitor has scrolled past a quarter of the page, plus any delay you set. It shows once per page view.

Can the toast stay open until closed?

Yes. Turn off Auto Dismiss and keep the close button on.

Add Toast Notifications to your next page

Toast Notifications is included with Phox Elements, along with 150+ other premium elements for Breakdance.