Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/apostololeg/kkontroller

Key controller for your web-page.
https://github.com/apostololeg/kkontroller

Last synced: about 1 month ago
JSON representation

Key controller for your web-page.

Awesome Lists containing this project

README

        

# kkontroller
Key controller for your web-page.
Just set class(`.control` by default) to all active blocks.

All the rest will do `kkontroller`.

## Initialize
``
var controller = new keyController();
``

## Events
* `move` – focus moving to nearest element.
* `enter` – changed scope to child.
* `out` – changed scope to parent.

```js
controller.domElem.on({
move: fn(),
enter: fn(),
out: fn()
});
```