github https://github.com/kamranahmedse/driver.js

    1. yarn add driver.js
    2. npm install driver.js

    使用

    1. import Driver from 'driver.js';
    2. import 'driver.js/dist/driver.min.css';
    3. // demo1
    4. const driver = new Driver();
    5. driver.highlight('#create-post')
    6. // demo2
    7. const driver = new Driver();
    8. driver.highlight({
    9. element: '#some-element',
    10. popover: {
    11. title: 'Title for the Popover',
    12. description: 'Description for it',
    13. }
    14. });