A jQuery plugin to make background images draggable.
Option | Type | Known Values | Default Value | Description |
---|---|---|---|---|
bound | Boolean | true|false | true | Whether dragging is bounded by the edges of the image. |
axis | String | x|y | If specified, restrict dragging along x or y axis. |
// default options
$('div').backgroundDraggable();
// only draggable in the x direction, and dragging is not bounded by the image
$('div').backgroundDraggable({ bound: false, axis: 'x' });
http://kentor.github.com/jquery-draggable-background/
v1.2 [2014-06-06]
- Refactored code to use semicolons.
- Support for
background-size: cover
.
v1.1 [2013-05-19]
- Touch support.
v1.0 [2012-09-23]
- Initial release.
Copyright (c) 2012 Kenneth Chung
Licensed under the MIT license.