I'm happy to announce we've added a new super exciting capability allowing you to set a "Fixed Width" image fit mode. "Fixed Width" means the image's height will grow/shrink according to the image's aspect ratio and width. Elements below the image will be pushed down, similar to what we have today with Repeaters. It's very useful for when the images are being set dynamically (using Data Binding / Corvid) because their aspect ratio is not known when building the site in the Editor. Also, Repeaters are supported! Corvid API ref Before:
After:
Enjoy!
Thats great!!
Any one had any success with 'fitmode' i have an art website with lots of different sized paintings to put up on dynamic pages - have no clear instruction from wix help team see below; as i am not a syntax expert am unable to follow these instructions - need help
thank you for contacting us!
You can not really manipulate images using Corvid (since adding or editing CSS is not supported) but if default functionality is not working - you can try using the fit mode:
https://www.wix.com/corvid/forum/corvid-tips-and-updates/new-feature-fixed-width-image-fit-mode
In general, we advise cropping your image according to the size of the element.
Feel free to contact us again if you need any further assistance.
Have a good day!
Jane Corvid by Wix Expert
thx clare b
Corvid documentation is super clear! thank you for this SUPER IMPORTANT feature!!!! many clients have been mad due to this thing but now this made a huge difference thanks A LOT!
I just now managed to find the right code, its been so long since I wrote code. Anyway got it working but it still seems to pick and choose sometimes where things end up being, north and south of the image :) everything is South but on some pages it throws one text block north of the image. Its gonna be something silly but thanks for your input. very much appreciated
The example in the link that Ofer posted above is very clear.
You should add more details to your question, so we'll be able to understand what is not clear enough. Maybe post a question in the discussion forum with your current code.
Does anyone have examples for fitmode? I seem to be missing something and the reference material is not helping.
And even though it still looks like an error in the IDE ("fitMode does not exist"). You can ignore it. It's not a real error and it works fine.
Beautyfull!