Intro.js: Option to change position of step number

Created on 12 Apr 2017  路  10Comments  路  Source: usablica/intro.js

Add option like "stepNumberPosition": top-left | top-right | bottom-left | bottom-right for every step.

wontfix

Most helpful comment

@vivek12345 I mean not tooltip position, but Step Number position (in red circle on top-left corner of highlighted element)
For example i have element on top-left corner of the page:
60c7907f30d1b4649ffc485e1f117f5b
So i cant't see the step number
Yes, i can change position through CSS, by changing top/left to bottom/right:
6413c9088561ebaa61aad2aede6d5ef9
But it's not convenient if you have dozens of elements on the page and some of them aligned to the left side of page.

All 10 comments

@xSirrioNx There is already a position attribute to do the same.

@vivek12345 I mean not tooltip position, but Step Number position (in red circle on top-left corner of highlighted element)
For example i have element on top-left corner of the page:
60c7907f30d1b4649ffc485e1f117f5b
So i cant't see the step number
Yes, i can change position through CSS, by changing top/left to bottom/right:
6413c9088561ebaa61aad2aede6d5ef9
But it's not convenient if you have dozens of elements on the page and some of them aligned to the left side of page.

This would help me as well

Same for us. On left hand menus the step number is not visible and I don't see an option for this.

We'd love this feature too!

seems like not yet fixed. I've added a temporary fix,

intro.onbeforechange(function (targetElement) {
  if (targetElement.id === 'element-id') {
    JQuery('.introjs-helperNumberLayer').addClass('introjs-stepno-top-visible')
  } else {
    JQuery('.introjs-helperNumberLayer').removeClass('introjs-stepno-top-visible')
  }
})

in your css:

.introjs-stepno-top-visible {
  top: 5px;
}

step

@bozdoz @afshinm Hi sir , can u please look at this. There also seems to be issues where when top nav elements are selected the number is shown beyond the screen. This functionality will help us bypass that

I'm facing the same issue. It would be nice to have official support for 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

Themandunord picture Themandunord  路  3Comments

cssagogo picture cssagogo  路  4Comments

stephendeo picture stephendeo  路  5Comments

litan1106 picture litan1106  路  3Comments

hakib picture hakib  路  4Comments