Skip to content

jesinwp/jquery-draggable-background

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

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.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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%