2.2.0 • Published 5 years ago

wea-tool-intro v2.2.0

Weekly downloads
26
License
MIT
Repository
github
Last release
5 years ago

WeaToolIntro

npm.io

Based the introjs, a user experience boot. Demo

Demo

Guide

CDN

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/wea-tool-intro@2.1.0/dist/wea-tool-intro.min.css">
<script src="https://cdn.jsdelivr.net/npm/wea-tool-intro@2.1.0/dist/wea-tool-intro.min.js"></script>

NPM

npm install --save wea-tool-intro
import WeaToolIntro from "wea-tool-intro";

Usage

var myWeaToolIntro = new WeaToolIntro([
  {
    element: "#step1",
    intro: "<h6>步骤一</h6>天青色等烟雨,而我在等你,岁月被打捞起,掩盖了结局。",
    position: "right",
    event: function() {
      console.log("step1");
    }
  },
  ...
]);
myWeaToolIntro.start();

Parameter

NameTypeDescript
elementString步骤区块的 id
introString步骤区块的描述文本
positionString步骤区块的显示位置
eventFunction当前步骤切换时触发的事件

Deploy

Netlify Status

2.2.0

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago