how to fix images adjusting after loading
i am running into a problem where the images adjust their size after the page loads i don't know what is causing this to happen any help ?
5 Replies
Looks to me like the
object-fit
css property is being updated after the initial mount. Hard to say why without additional contextwhen i get rid of object fit it doesn't behave that way certainly
You should read about @starting-style if this is only CSS issue, otherwise you need to fix some javascript code managing stylesheet
i am using sass @starting-style doesn't working with sass
I think your problem stems from styles being loaded too late. See if
style={{ objectFit: ... }}
fixes the issue