How can I animate the text underline in and out slowly on Webflow?

Published on
September 22, 2023

To animate the text underline in and out slowly on Webflow, you can follow these steps:

  1. Select the text element that you want to apply the animation to.
  2. Go to the Interactions panel, located on the right-hand side of the Webflow editor.
  3. Click on the "+" button to create a new interaction.
  4. Choose the trigger for the interaction. It can be a page load, scroll into view, or any other event that you prefer.
  5. Select the element that you want to animate. In this case, it would be the underline element. If your text doesn't have an underline, you can create one by adding a div block below the text element and styling it as an underline.
  6. Set the initial state of the underline. This can be done by adjusting the opacity or height of the underline element to make it invisible or minimized.
  7. Add a new animation to the element by clicking the "+" button in the Animation section of the interaction panel.
  8. Configure the animation settings. Choose the animation type as "Opacity" or "Height" depending on how you want the underline to appear.
  9. Set the duration of the animation to control the speed at which the underline fades in or expands.
  10. Adjust the easing curve to create a smooth and gradual transition in and out of the animation.
  11. To create the "out" animation, add another new animation step and set it to reverse the effect of the "in" animation. For example, if using opacity, set it to 0%.
  12. Preview the animation to see how it looks and make any necessary adjustments.
  13. Publish your site to see the animated text underline in action.

By following these steps, you can achieve a slow and smooth in and out animation for the text underline in Webflow.

Additional questions:

  • Can I apply the same animation to multiple text elements in Webflow?
  • How can I change the color of the text underline during the animation in Webflow?
  • Is it possible to animate other elements along with the text underline in Webflow?