user-tabbing
v1.0.0
Published
Adds a 'tabbing' class to the body when the user is using the tab key to navigate the page
Readme
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-tabbingyarn
yarn add user-tabbingUsage
Importing
You can import using ES6 imports. The script will automatically begin running so only import this once.
import 'user-tabbing';