Is it possible to use Slimsy to switch out crops of an image at different sizes? I can see how to use it for a single crop, but if you wanted to switch between different crops at different screen sizes is this feasible or is it best to write my own behaviour for it?
Example, on larger sizes I'm be looking to use a letterbox style crop, but on mobile I'm after a more square crop of an image. Tablet might be different as well.
Slimsy - Single image - Different crops
Hi,
Is it possible to use Slimsy to switch out crops of an image at different sizes? I can see how to use it for a single crop, but if you wanted to switch between different crops at different screen sizes is this feasible or is it best to write my own behaviour for it?
Example, on larger sizes I'm be looking to use a letterbox style crop, but on mobile I'm after a more square crop of an image. Tablet might be different as well.
Thanks
Nik
Hi Nik
You could, but you need to define breakpoints and crop sizes manually.
Like this:
In this example, if the viewport is below 800px, the browser will load an image in a ratio of 3 to 2, above 800px, it would be 2 to 3.
Ahh, great idea, yes this could work. :-) Thanks
is working on a reply...