Shepherd.js 介绍
Shepherd 一款可在应用中快速集成用户引导功能的 js 库。
npm
npm install shepherd.js --save
yarn
yarn add shepherd.js
使用
let tour = new Shepherd.Tour({defaultStepOptions: {
classes: 'shadow-md bg-purple-dark',
scrollTo: true
}
});
tour.addStep('example',{
title: 'Example Shepherd',
text: 'Creating a Shepherd is easy too! Just create ...',
attachTo: '.hero-example bottom',
advanceOn: '.docs-link click'
});
tour.start();
网站地址:https://shipshapecode.github.io/shepherd/docs/welcome/
GitHub:https://github.com/shipshapecode/shepherd
网站描述:为应用创建新手引导
Shepherd.js
官方网站:https://shipshapecode.github.io/shepherd/docs/welcome/
小编说
以上是编程之家为你收集整理的Shepherd.js全部内容。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。