jonom / jquery-focuspoint

jQuery plugin for 'responsive cropping'. Dynamically crop images to fill available space without cutting out the image's subject. Great for full-screen images.
Other
3.14k stars 210 forks source link

Did something similar #29

Closed martlind closed 10 years ago

martlind commented 10 years ago

Hi! This looks great, just wanted to share something quick and dirty I did, a little bit different approach. Maybe it could be of use for you. Cheers!

https://github.com/martlind/coveraxis

jonom commented 10 years ago

Hey @martlind thanks for that!

I probably won't update FocusPoint to support background images as if a browser supports background-size you should be able to accomplish a similar effect to what FocusPoint does using only css and percentages - see an example here: http://jonom.github.io/jquery-focuspoint/demos/css-js-comparison/index.html and a helper tool to find background-position values here: http://jonom.github.io/jquery-focuspoint/demos/helper/index.html

By the way the images folder is missing from your repo so I had to do a little editing to try out your demo.

Thanks for getting in touch.