1.0.3 • Published 1 year ago

introh-js v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Intro for page

npm version npm npm All Contributors

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