DragosIorgulescu / jquery-draggable-background

A jQuery plugin for draggable background images.

Home Page:https://github.com/kentor/jquery-draggable-background

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Draggable Background

A jQuery plugin to make background images draggable.

Configuration

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.

Usage

// default options
$('div').backgroundDraggable();

// only draggable in the x direction, and dragging is not bounded by the image
$('div').backgroundDraggable({ bound: false, axis: 'x' });

Demo

http://kentor.github.com/jquery-draggable-background/

Changelog

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.

License

Copyright (c) 2012 Kenneth Chung

Licensed under the MIT license.

About

A jQuery plugin for draggable background images.

https://github.com/kentor/jquery-draggable-background