JSON configuration
You can define your tour settings using JSON as well.
introJs().setOptions({
steps: [{
title: 'Welcome',
intro: 'Hello World! 👋'
},
{
element: document.querySelector('.card-demo'),
intro: 'This step focuses on an image'
},
{
title: 'Farewell!',
element: document.querySelector('.card__image'),
intro: 'And this is our final step!'
}]
}).start();