Defining steps via JSON Object

You can also define steps programmatically via a JSON Object.

Setup

var mytutorial = new Tutorial({
    steps: [
        {
            highlight: "#first-step",
            title: "First step",
            text: "Welcome to our app!"
        },
        {
            highlight: "#second-step",
            title: "Second step",
            text: "This is how you set it up"
        }
    ]
});

HTML

<p id="first-step">
    You can also define the steps programmatically via a JSON Object.
</p>
<p id="second-step">...</p>