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.