Intro.js not working for specific classes

佐手、 提交于 2019-12-05 19:58:32

In current version of IntroJs (v0.3.0) you cannot start introduction for specific element with a class or something.

You should create a container element, and then start introduction for those elements like this:

<div class="case_event_intro">
    <div data-intro="Hello world" data-step="1">
        ...
    </div>
</div>

And then call:

introJs(".case_event_intro").start();

Switch where you are adding the class.

introJs().start('.case_event_intro');
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!