Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ryanve/arro

left/right arrow keyboard shortcuts
https://github.com/ryanve/arro

Last synced: about 1 month 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