Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Added ability to specify units as "pixels" or "percentage" #16
Great jQuery plugin!
I am using block elements with an intrinsic aspect ratio in order to display responsive image spaces where the user has adjusted the image position using this jQuery plugin.
Background images positioned using pixels and
Using percentages for background position allows the background to be in the correct space, regardless of element size.
The code I added to the plugin adds an option called
Are there plans to get this merged? Would be backwards compatible if "px" is defaulted if no units are passed in.
This is important for my use case, where a dragged picture's position changes significantly if the