Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hunghg255/intro-js


https://github.com/hunghg255/intro-js

npm

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        



logo


A library intro for your website


NPM Version
NPM Downloads
Minizip
Contributors
License

[Live Demo](https://hunghg255.github.io/intro-js/demo/index.html)

## Installation

[![NPM](https://nodei.co/npm/introh-js.png?compact=true)](https://nodei.co/npm/introh-js/)

#### To install the latest stable version:

```
npm install --save introh-js

or

yarn add introh-js
```

#### Basic usage:

```css
@import 'introh-js/dist/styles.css';
```

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