Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 268 Bytes

README.md

File metadata and controls

13 lines (8 loc) · 268 Bytes

jquery-backgroundPosition

Simple plugin to get the background position of an element

Usage:

var position = $('element').backgroundPosition();

Returns an object with the form

{x:{val:0, type:'px'}, y:{val:50, type:'%'}}