Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/apostololeg/kkontroller
- Owner: apostololeg
- Created: 2015-02-22T21:17:21.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-09T19:10:08.000Z (almost 10 years ago)
- Last Synced: 2024-10-20T04:12:18.807Z (2 months ago)
- Language: JavaScript
- Size: 152 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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()
});
```