Shepherd用于創建網站使用向導的JS庫
Shepherd是一個用于創建網站使用向導的JS庫。它用到了另一個開源庫Tether,來定位所有步驟的位置。 Tether能夠確保所有步驟不會跑出屏幕,或被overflow裁剪。
tour = new Shepherd.Tour
defaults:
classes: 'shepherd-theme-arrows'
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()</pre>

本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!