Webflow sync, pageviews & more.
NEW

How can I fix an issue in Webflow Designer where an image keeps resizing and jumping up and down despite trying various fixes like removing max-width, setting pixel sizes, and adjusting parent element height?

TL;DR
  • Set fixed dimensions or aspect ratios on images and containers to maintain layout stability.
  • Use proper object-fit and display settings, disable lazy loading if needed, and check for conflicting animations or layout styles causing shifts.

Image resizing and jumping in Webflow Designer usually stems from layout or rendering inconsistencies, especially around how the image is loaded or how its container behaves. Here’s how to diagnose and fix this behavior.

1. Set Explicit Dimensions on Image and Container

  • Select the image and assign fixed width and height in pixels if possible (e.g., 300px width, 200px height).
  • If you need responsive sizing, use aspect ratio settings (e.g., 3:2) by setting padding-bottom on a wrapper div.
  • Avoid using auto height unless the layout also accounts for content drifting during load.

2. Use Object-Fit and Display Properties Properly

  • If the image is not meant to stretch or skew, apply object-fit: cover or contain depending on your design goal.
  • Set the image to display: block to avoid inline spacing issues (images are inline by default and can cause layout shifts).

3. Prevent CLS (Cumulative Layout Shift) During Load

  • Wrap your image in a div with preset height or aspect ratio. Before the image loads, this keeps the layout stable.
  • Alternatively, preload the image by setting loading="eager" and placing it above the fold when necessary.

4. Check Parent Element’s Positioning and Flex/Grid Settings

  • If the parent container is using flex or grid, make sure:
  • It’s not set to align-items: stretch unless intended.
  • Align/self settings are defined properly (e.g., align-self: center).
  • There’s no dynamic resizing logic that affects height (like ‘height: auto’ combined with inconsistent content).

5. Audit for Interaction or Animation Conflicts

  • Confirm that there are no conflicting Webflow Interactions or animations causing the image to move or scale on load.
  • Check your Initial State settings in Webflow Interactions panel for any image-specific or container-specific triggers.

6. Disable Lazy Loading for Testing

  • Webflow activates lazy loading by default. This can cause flickering or reflow if the container has no defined size.
  • Test by removing the image and re-adding it, then set Lazy Load: Off in the image settings panel to confirm if that’s the cause.

7. Inspect with Chrome DevTools

  • Open the live or preview site in Chrome.
  • Use Developer Tools → Elements + Computed tab to inspect the image and its parent.
  • Watch for values that dynamically change (especially padding, margin, height) when the resize/jump happens.

Summary

To fix image resizing and jumping in Webflow Designer, make sure both the image and its container have fixed dimensions or maintained aspect ratios, remove lazy load if necessary, and ensure no conflicting layout styles or animations are applied. By standardizing layout constraints, you can effectively eliminate unpredictable image resizing behavior.

Rate this answer

Other Webflow Questions