Socket
Book a DemoInstallSign in
Socket

driver.js

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

driver.js

A light-weight, no-dependency, vanilla JavaScript library to drive the user's focus across the page

Source
npmnpm
Version
0.7.0
Version published
Weekly downloads
181K
6.88%
Maintainers
1
Weekly downloads
 
Created

What is driver.js?

Driver.js is a lightweight, open-source JavaScript library that helps you create interactive, step-by-step guides for your web applications. It allows you to highlight elements on a page and provide contextual information to users, making it easier to onboard new users or guide them through complex workflows.

What are driver.js's main functionalities?

Highlight Elements

This feature allows you to highlight specific elements on a webpage to draw the user's attention. The code sample demonstrates how to initialize a Driver instance and highlight an element with a specific ID.

const driver = new Driver();
driver.highlight('#elementId');

Step-by-Step Guide

Driver.js allows you to create a sequence of steps to guide users through a process. The code sample shows how to define a series of steps with popovers that provide titles and descriptions for each step.

const driver = new Driver();
driver.defineSteps([
  {
    element: '#step1',
    popover: {
      title: 'Step 1',
      description: 'This is the first step.',
    }
  },
  {
    element: '#step2',
    popover: {
      title: 'Step 2',
      description: 'This is the second step.',
    }
  }
]);
driver.start();

Customizable Popovers

Driver.js provides options to customize the appearance and behavior of popovers. The code sample demonstrates how to customize a popover's position and make it closable.

const driver = new Driver();
driver.defineSteps([
  {
    element: '#customPopover',
    popover: {
      title: 'Custom Popover',
      description: 'This popover is customized.',
      position: 'right',
      isClosable: true
    }
  }
]);
driver.start();

Other packages similar to driver.js

FAQs

Package last updated on 10 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts