Skip to content

hunghg255/intro-js

Repository files navigation

logo

A library intro for your website

NPM Version NPM Downloads Minizip Contributors License

Live Demo

Installation

NPM

To install the latest stable version:

npm install --save introh-js

or

yarn add introh-js

Basic usage:

@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,
});