img-fluid is a Bootstrap class for making an image responsive.
I load the skeleton in the middle of the screen. The actual width becomes 393.3 pixels after resizing to be adjusted to the grid layout but the height is kept with 1080 pixels. Any suggestion on how should I handle the skeleton in order to have the same aspect ratio of the original image I want to load? Thanks!
I have an image and I know its dimensions: 1080 x 1620 pixels. So I do this:
Skeleton(height="1620px" width="1080px" :duration="3.3" class="img-fluid")
img-fluid is a Bootstrap class for making an image responsive.
I load the skeleton in the middle of the screen. The actual width becomes 393.3 pixels after resizing to be adjusted to the grid layout but the height is kept with 1080 pixels. Any suggestion on how should I handle the skeleton in order to have the same aspect ratio of the original image I want to load? Thanks!