WindowPicker 0.1
Details
- Author
- Pat Cullen
- Current version
- 0.1
- GitHub
- patcullen/WindowPicker
- Downloads
- 1551
- Category
- Interface
- Tags
- Report
- GitHub Issues
How to use
To make a WindowPicker that automatically targets a certain class of elements you can initialize it like this:
var picker = new WindowPicker({
target: '.window'
});
From here, The window picker will automatically react to CTRL-Left and CTRL-Right keypresses. Everytime the effect is restarted the WindowPicker will rescan the page for elements that match your target class.
To spin your elements in a circle/carousel, use the transition option set as follows: var picker = new WindowPicker({ target: '.window', transition: WindowPicker.Transition.Carousel });
The WindowPicker can be run in a more manual way. To do this you must leave the target option as null (default). Please check the class source to see the full list of methods available; but you will probably find the following methods particuarly usefull: addWindow(), next(), previous(), close().
Known Bugs And Quirks
The Transition functions could use a bit of work. Caching and any kind of optimizing are missing. I've also noticed the items dont scale in a way I'd call predicatable. But it looks OK for first release and didn't want to delay.
Discuss
A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.
Found a bug in this plugin? Please report it this repository's Github Issues.
blog comments powered by Disqus