npm.io
1.0.0 • Published 7 years ago

user-tabbing

Licence
MIT
Version
1.0.0
Deps
0
Size
45 kB
Vulns
0
Weekly
0

user-tabbing

Detects if the user is navigating the page using the tab key and adds a 'tabbing' class to the body. The class is removed when the user clicks on the page.

Install

You can install via npm or yarn.

npm

npm install --save user-tabbing
yarn
yarn add user-tabbing

Usage

Importing

You can import using ES6 imports. The script will automatically begin running so only import this once.

import 'user-tabbing';

Keywords