I’ve been playing around with responsive images lately and I’ve managed to get it working in scenarios where the image takes up a certain amount of viewport width, for example when the image takes up 25% or 100% of the width.
Now I want to update the image block to make the images in my layout template pages responsive too. The only thing is, in those pages I have images which when on min-wdtih:992px take up 33%, 50% and 100% of the viewport. So the pages have multiple images displayed in various sizes, so all three scenarios on one page.
Considering that the same image block is used for displaying images in all three scenarios, how would I go about achieving this? Is it even possible? Any tips would be appreciated.