michaelfeinbier / craft3-fp-backgrounds

Craft CMS 3 Plugin to use the focalpoint for background-positioning
MIT License
0 stars 0 forks source link

Craft 3.1 update #2

Open mdominguez opened 5 years ago

mdominguez commented 5 years ago

Hi there,

I'm getting the following error when composer updating to Craft 3.1 =>

mfeinbier/craft3-fp-backgrounds 1.0.0 requires craftcms/cms ~3.0.0-beta.1 -> satisfiable by craftcms/cms

view screenshot

Is this something you have to adjust or does this require some kind of settings change in my composer.json file?

pette87 commented 5 years ago

Hi,

same too.

Please fix it!

mdominguez commented 5 years ago

@pette87 : No need for this plugin anymore, you can access the focalPoint values like so => <div style="background-position: {{ image.getFocalPoint()['x'] * 100 ~ '%' ~ ' ' ~ image.getFocalPoint()['y'] * 100 ~ '%' }};"></div>