How can I create a simple floating animation using images as floating objects in Webflow?

TL;DR
  • Add image elements with unique classes and position them using relative or absolute layout.  
  • Create a timed animation with up and down move actions in a loop using ease-in-out, then assign and vary the animation per image for a natural floating effect.

To create a simple floating animation using images in Webflow, you can use Webflow’s native interactions and animations. This effect is great for making objects subtly float or bob like they’re in water or air.

1. Add Image Elements to the Page

  • Drag an Image element into the canvas from the Add panel.
  • Upload or select the image you want to float (e.g., a cloud, balloon, icon).
  • Give each image a unique class if you want them to float independently.

2. Setup the Initial Layout

  • Position the images where you want them to start floating.
  • Set their position as Relative or Absolute depending on the container.
  • Make sure the images are in the correct z-index to avoid overlap issues.

3. Create a Float Animation Interaction

  • Go to the Interactions Panel (lightning icon).
  • Click + next to Page Trigger or + next to an Element Trigger, depending on if you want all images to animate on page load or each one individually.
  • Choose While Page is Scrolling for scroll-based, or Page Load or Mouse Move in Viewport for continuous effect.

For a looping floating animation:

  • Select the image element.
  • Go to Element Trigger > Scroll into view or Mouse move in viewport.
  • Alternatively, use “Animation > Timed Animation”:
  • Create a new timed animation (e.g., Float Loop).
  • Add a Move action that moves the image up (e.g., Y = -10px) over 2 sec.
  • Add another Move action going down (Y = 10px) over 2 sec.
  • Set it to loop and add ease (e.g., ease-in-out) for smooth motion.

4. Apply the Animation

  • Assign this animation to each image that needs the floating effect.
  • You can reuse the same animation or duplicate and customize for each image.

5. Optional: Add Variations

  • To make floating look more natural, vary:
  • Duration slightly among objects.
  • Delay per image so they’re not in sync.
  • Horizontal movement (X axis) in addition to vertical (Y axis).

Summary

Use Webflow's interactions and timed animations to move image elements up and down in a loop with easing to simulate floating. Apply slight variations to each image’s animation for a more natural floating effect.

Rate this answer

Other Webflow Questions