To create a line animation under your Webflow navbar links when hovering, similar to the one found on the Fendi website, you can follow these steps:
Step 1: Set up your navbar structure
Create a new navbar component or use an existing one. Make sure your navbar links are properly organized and styled.
Step 2: Add an additional element for the line animation
Inside each navbar link, add a new div or span element. This element will be used for the line animation.
Step 3: Style the line animation element
Give the line animation element a default width of 0 and height of your desired thickness. Set its background color to the color you want the line animation to have when activated.
Step 4: Create the hover animation
Select the line animation element and go to the interactions panel. Click on the "+" icon to add a new interaction.
In the interaction settings, choose the trigger "Hover" for your navbar link.
Step 5: Configure the animations
In the interaction settings, click on the "+" icon next to "Affect" to add a new animation.
Select the line animation element as the target for the animation.
In the animation settings, set the initial state of the line animation element to have a width of 0 (or any smaller value) and a transition duration.
Add a second state to the animation with a desired width value, such as 100%.
Step 6: Fine-tune the animation
Adjust the easing and duration of the animation to achieve the desired effect. You can also add additional animations, such as changing the background color or opacity of the line animation element, to enhance the effect further.
Step 7: Repeat for other navbar links
Repeat steps 3-6 for each navbar link that you want to have the line animation.
Step 8: Preview and refine
Preview your navbar and test the hover animation on each link. Make any necessary adjustments to the animation settings to achieve the desired effect.
That's it! By following these steps, you can create a line animation under your Webflow navbar links when hovering, similar to the Fendi website. Remember to customize the animation properties, such as the width, color, and duration, to match your design preferences.