Intro. js website demo and intro. js website demo
Intro. js
Provides a step-by-step and better introduction to your websites and projects.
Easy to use
Introduce js and css, and then add the steps and introduction to the code.
Fast and compact
7 KB JavaScript and 3 kb css are all.
Free Open Source
Free and open-source (including commercial use), under the MIT license.
Keyboard and mouse navigation
Mouse or keyboard←
,→
,ENTER
Navigation,ESC
Key to exit.
Online instance
Instance demo
Parameters are described in json format:
- Key: value
Copy configurable Parameters
- NextLabel: "Next & rarr ;",
- PrevLabel: "& larr; Back ",
- SkipLabel: "Skip ",
- DoneLabel: "Done ",
- TooltipPosition: "bottom ",
- TooltipClass :"",
- HighlightClass :"",
- ExitOnEsc :! 0,
- ExitOnOverlayClick :! 0,
- ShowStepNumbers :! 0,
- KeyboardNavigation :! 0,
- ShowButtons :! 0,
- ShowBullets :! 0,
- ShowProgress :! 1,
- ScrollToElement :! 0,
- OverlayOpacity: 0.8,
- PositionPrecedence: ["bottom", "top", "right", "left"],
- DisableInteraction :! 1
Copy setting method (multiple parameter settings)
Keyword: setOptions
- IntroJs (). setOptions ({'prevlab': '& larr; ', 'nextlabel ': 'Next & rarr;', 'skiplabel': 'skip ', 'donelabel ': 'complete '}). start ();
Copy setting method (single parameter setting)
Keyword: setOption
- IntroJs (). setOption ("prevLabel", "previous"). start ();
Copy
Page distribution guide element settings:
- <Div id = "demo" data-step = "1" data-intro = "here is the content of distributed guidance ...... "Data-position =" right ">
- </Div>
Copy
Note:
- Data-step: step 1
- Data-intro: distributed Bootstrap content
- Data-position: the position where the guiding content is displayed,
Copy
Parameter: left, right, top, bottom (not explained)
Download