Get new jQuery plugins just once a week

×

jQuery.Viewport

June 23, 2013

Create a handy viewport for displaying absolute elements.

jQuery.Viewport is a jquery plugin that makes an element as a handy viewport for displaying elements with absolute position.By using it with jquery.draggable and jquery.scrollable a interaction can be generated.

Example Code :

$(function() {
var element = $('#element').viewport();
var content = element.viewport('content');

content.draggable({containment: 'parent'});
content.scraggable({containment: 'parent'});
});

Created by Quentin ADAM

Download
Home
Example

jQuery-Viewport

makes an element as a handy viewport for displaying elements with absolute position

jQuery.Viewport

Related posts:

Emojiarea
SpellChecker
Ptty
jQuery-Viewport

http://jquer.in/wp-content/uploads/2012/07/jQuery-Viewport.png

jQuery plugin

Sign up for our weekly newsletter.

* We won't spam you ever