Skip to main content

Interstitial

interstitial in Web issimilar and supports many of the keys as in-app.

KeyNotes
typeinterstitial
stepIdUnique id for the step
useHTMLOptional - set it to true to support HTML tags as break lines <br/> in the title or subtitle of the step
hideProgressBarBoolean. It can be used to hide the progress if needed.
configAn object for all the context and style of the step – read more about that object below.

The config Object

KeyNotes
typeinterstitial
titleUsed if the step has a title.
subtitleUsed if the step has a subtitle.
textColorThe color for the title and subtitle.
imageThe URL of the step’s image
ctaThe text of the CTA – e.g. Continue.
color_ctaThe text color of the CTA.
color_cta_buttonThe background color of the CTA.
color_backgroundThe background color of the step.
color_background_mobileOptional, if we want to use a different background color on mobile devices. (The default color will be color_background if color_background_mobile isn’t passed to the config.
autoNextSet it to true if the step should move to the next step directly without having the CTA button.
autoNextDelayThe number of milliseconds we should wait until auto-move to the next step – e.g 5000 for wait for 5 seconds.
modeIn Web, only CENTER is supported and it can be used to show the title in the center without having an autoNext to the step
imageAltTextText can be added as the alt text of the image.
lottieUrlIt can be used instead of image to show a Lottie file.

Examples

Step with a title and autoNext set to true

{
"type": "interstitial",
"stepId": "celebrating_strengths",
"config": {
"id": "celebrating_strengths",
"title": "This journey isn't about labeling or diagnosing – it's about celebrating the unique strengths and talents that accompany ADHD",
"image": "https://c.thefab.co/web-onboarding/time/img-inter-gems.webp",
"color_background": "#037296",
"autoNext": true,
"autoNextDelay": 5000,
"textColor": "#fff"
}
}

Screenshot 2024-11-07 at 10.07.46 AM.png

Step with a title and subtitle and cta:

{
"type": "interstitial",
"stepId": "discover_power",
"config": {
"id": "discover_power",
"title": "Ready to discover your superpowers?",
"subtitle": "At the end of this exploration, we'll compile your responses to generate a personalized Strengths Portrait.",
"image": "https://c.thefab.co/web-onboarding/time/img-inter-superpowers-opt-zoom.webp",
"color_cta": "#FFFFFF",
"color_cta_button": "#37CDB8",
"color_background": "#004b42",
"cta": "Let's begin",
"textColor": "#fff"
}
}

Screenshot 2024-11-07 at 10.14.41 AM.png