Learn how to create and customize wait steps in Oppla tours
import { createTour } from '@oppla-ai/tours'; const tour = createTour({ id: 'feature-tour', steps: [ { type: 'wait', duration: 2000 // Wait for 2 seconds } ] }); tour.start();
{ type: 'wait', duration: 2000, message: 'Loading...', showSpinner: true }
{ type: 'wait', target: '#feature-button', timeout: 5000, message: 'Waiting for feature to load...' }
{ type: 'wait', condition: () => { return document.querySelector('#feature-button') !== null; }, timeout: 5000, message: 'Waiting for feature to be ready...' }
{ type: 'wait', userAction: 'click', target: '#feature-button', message: 'Please click the button to continue' }
Was this page helpful?