Is it possible to create a hover animation on the background of a Webflow section, where the shapes change from squares to circles?

Published on
September 22, 2023

Yes, it is possible to create a hover animation on the background of a Webflow section where the shapes change from squares to circles. You can achieve this by using a combination of Webflow's interactions and CSS properties.

Here's a step-by-step guide on how to create such a hover animation in Webflow:

  1. Start by creating a new section in your Webflow project.
  2. Give the section a class name. This will be used to target the section in interactions.
  3. Next, go to the Styles panel and select the section. In the background settings, set the initial shape of the background to a square using the "Background Shape" option. You can adjust the size and position of the background as desired.
  4. Now, navigate to the Interactions panel and click on "Add New Interaction" button to create a new interaction.
  5. Select the trigger for the interaction to be "Hover" and choose the section as the element to affect.
  6. Click on "Start an Animation" and choose "Transform" from the dropdown menu.
  7. In the Transform settings, set the initial appearance of the background shape to a square by using the "Scale" property. Set the X and Y values to 1 to maintain the original shape.
  8. Click on "Create New Step" to add a new step to the animation.
  9. In the second step, change the shape of the background from square to circle. Modify the values of the "Scale" property to make the shape circular. You may need to adjust the X and Y values based on the size of your square.
  10. Finally, set the duration and easing of the animation to your preference. You can experiment with different settings to achieve the desired effect.

That's it! Now, when you hover over the section, the background shape will transition from a square to a circle.

Additional Questions:

  1. How do I create hover animations in Webflow?
  2. Can I change the background shape of a section on hover in Webflow?
  3. What are the steps to create a hover animation that changes shapes in Webflow?