1.0.0 • Published 6 years ago

user-tabbing v1.0.0

Weekly downloads
43
License
MIT
Repository
github
Last release
6 years ago

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';