扫一扫分享
Shepherd 一款可在应用中快速集成用户引导功能的 JS 库。
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();
手机预览