Fitmode for repeater images

@J. D. I want all repeater images to be indifferent original aspect ratio as the image mentioned above
Not working with these codes too
let $repeaterData = $w.at(event.context); $repeaterData( ’ #imageX4 ’ ).fitMode = “fixedWidth” ;

$w.onReady( function () { $w( " #dataset1 " ).onReady(() => { $w( " #imageX4 " ).onViewportEnter( async (event, $w) => { $w( " #imageX4 " ).fitMode = “fixedWidth” ; }); }); });

1 Like

Hi,
to set the fixed width of an element you need to access it’s CSS code which is currently not possible. You can vote for this feature here .