Get ratio of image with NuxtImage for explicit width and height (cls) #1009
Replies: 3 comments
-
|
I don't have an answer to your question, but maybe an alternative: |
Beta Was this translation helpful? Give feedback.
-
|
I've been trying to get this working for a while without success so far. Here is a related discussion: johannschopplich/unlazy#11 |
Beta Was this translation helpful? Give feedback.
-
|
Ok, I've got a working solution for |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When working with NuxtImage I work with images where I do not know the height, because they come from a editor / cms in an article.
How do I know the aspect ratio for an image so i can any evade any cumulative layout shift?
Nuxt-Img: Width/Height
Lighthouse: "Image Elements do not have explicit width and height"
Beta Was this translation helpful? Give feedback.
All reactions