WindowPicker 0.1

WindowPicker is a class designed to facilitate the user visually scrolling through elements.



Details

Author
Pat Cullen
Current version
0.1
GitHub
patcullen/WindowPicker
Downloads
1964
Category
Interface
Tags
Report
GitHub Issues

Releases


Dependencies

  • _self_/_current_: core/1.2.4: '*'

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.


Screenshots


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