I got a fixed element (because that element has to stay fixed at a certain position) with these attributes:
style="position: fixed; width: 270px; right: 60px; height: 500px;"
Whenever I press through the introJS steps, it would show the highlighted area a little bit off:
How I call IntroJS:
var intro = introJs();
var options_before = {
steps: [
{
element: ".bar",
intro: "this is step 1"
},
{
element: "div#fooId",
intro: "Why does step 2 look so weird?="
}
]
}
intro.setOptions(options_before);
intro.start();
I tried to reposition (changing top
and margin
attributes) and resize that element, but the highlighted area of introJS would never fit to the area I want to hightlight.