data-intro
and data-step
attributes with the description and step number respectively to the desired page elements. Like this: <a href='http://google.com/' data-intro='Hello step one!' data-step='1'></a>
introJs().start()
function. The introduction can be divided into parts by assigning different classes to the elements of each part and limiting the introJs to a specific class. For example, if all elements of the first part of the presentation have the .introduction-first
class, and the second - .introduction-second
, you can first call only the first part, and in another place, for example, after the user performs some actions - the second: introJs(".introduction-first").start(); ... introJs(".introduction-second").start();
data-intro
attributes. You can move between them using the arrows on the keyboard or by clicking the mouse. The project site has a live demo .Source: https://habr.com/ru/post/173327/
All Articles