An open API service indexing awesome lists of open source software.

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

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

Previous
Next

```

## 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