Intro.js: Highlight multiple nodes on the same step

Created on 25 Aug 2015  路  20Comments  路  Source: usablica/intro.js

Hi. I have situations when some UI elements has more than one root-node. And I want to highlight them all at the same step. Is there way to do it?

wontfix

All 20 comments

+1

+1

+1

labelled. will work on this.

  • 1

+1, we would like to see and use this feature

+1

+1

+1

:+1: +1

+1

馃憤

馃憤 +1

Just wondering if there can be more discussion here about how this could be done. Here's what I see as the situation:

<div id="intro-a">
  <div data-intro="hello step one" data-step="1">Some content</div>
</div>
<div id="intro-b">
  <div data-intro="hello step two" data-step="2">Some content</div>
</div>

Maybe the issue is resolved by passing an array to introJs instead of an element or selector, and handling multiple target elements:

introJs(['#intro-a', '#intro-b']).start();

But this would mean a rather large re-writing of the current library to iterate target elements, as opposed to querying children of a single target element. Just my thoughts.

+1

+1

:thumbsup:

Two avenues perhaps worth exploring:

  1. Use a canvas element overlay and then 'cut out' the areas that need to be highlighted using ctx.globalCompositeOperation = "destination-out"; Example.

  2. Same idea as 1. but with divs and CSS blend modes. Example.

Are there any updates on this?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ethaniel picture ethaniel  路  6Comments

litan1106 picture litan1106  路  3Comments

janroesner picture janroesner  路  6Comments

hakib picture hakib  路  4Comments

zombiezlk picture zombiezlk  路  6Comments