akv2 / MaxImage

The first jQuery plugin to use jQuery Cycle plugin as a fullscreen background slideshow.
http://www.aaronvanderzwan.com/maximage/2.0/
407 stars 219 forks source link

Is it possible to choose an edge to anchor to avoid cropping a certain part? #4

Closed alancwoo closed 12 years ago

alancwoo commented 12 years ago

Hello, I'm working with a number of images of a standing model and would prefer to crop the feet rather than the head, is it possible to anchor the image so the top of the image is always fixed to the top of the screen?

For example:

Centered Crop 'Centered Crop'

vs.

Top Fixed Crop 'Top Fixed Crop'

akv2 commented 12 years ago

I do not have this functionality built in to the plugin. You might be able to work something out with CSS but as for the heavy lifting that maximage is doing, that functionality is not currently included.

akv2 commented 12 years ago

Scratch that.

This is an option you can set with CSS. See Line 34 in maximage CSS: https://github.com/akv2/MaxImage/blob/master/lib/css/jquery.maximage.css#L34