https://github.com/ryanve/arro
left/right arrow keyboard shortcuts
https://github.com/ryanve/arro
Last synced: 10 months ago
JSON representation
left/right arrow keyboard shortcuts
- Host: GitHub
- URL: https://github.com/ryanve/arro
- Owner: ryanve
- Created: 2014-09-27T17:45:24.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-09-27T17:58:55.000Z (almost 12 years ago)
- Last Synced: 2025-03-15T21:51:20.707Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://www.npmjs.org/package/arro
- Size: 133 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# arro
#### left/right-arrow keyboard shortcuts for flipping through `[rel="prev"]` and `[rel="next"]` links using native JavaScript
## Usage
Load [arro.js](arro.js) via `script` tag or via `require('arro')` in your bundle. Specify `[rel="prev"]` and `[rel="next"]` URLs via either `link[href]` in `a[href]` tags.
### `link` example
```html
2.html
2
```
### `a` example
```html
2.html
2
```
## Demo
1. Download or clone the repo
1. Open [test/index.html](test/index.html) in a web browser
## Compatibility
Works in all modern browsers
## Fund
[Tip the developer](https://gratipay.com/ryanve/) =)
## License
MIT