Hi,
I’m trying to use srcset to change image while I’m resizing my window.
Here is how I’m displaying my images :
<?php $images = $page->medias()->toFiles();
foreach($images as $image): ?>
<a href="<?= $image->url() ?>"><img src="<?= $image->url() ?>" alt="<?= $image->alt()?>" srcset="<?= $image->srcset() ?>"></a>
<?php endforeach ?>
I set srcset value in my confign like this :
'thumbs' => [
'srcsets' => [
'default' => [380, 880, 1080]
]
]
I have verified my media folder, if the images thumbs are created, it’s seems good :
But when I’m resizing my windows, the sourceset doesn’t change :