Created
April 3, 2014 08:06
-
-
Save marcusramberg/9950312 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var factor = container.width() / alignment.cropW; | |
var img = headerImage.find('img'); | |
var croppedCss = { | |
top: 0-Math.floor(alignment.cropY*factor), | |
left: 0-Math.floor(alignment.cropX*factor), | |
position: 'relative' | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment