A library intro for your website
npm install --save introh-js
or
yarn add introh-js
@import 'introh-js/dist/styles.css';
interface IIntroJs {
steps: { element: string; children: string }[];
isStart?: boolean;
}
new IntroJs(options: IIntroJs);
const steps = [
{
element: '.title',
children: 'Title One',
},
{
element: '.second',
children: 'Title Two',
},
{
element: '.three',
children: 'Title Three',
},
{
element: '.cat',
children: 'Cat',
},
];
const instante = new IntroJs({
steps,
});