How to disable hover animation in current state

Hey,

I’ve added this video for a better understanding what the actual problem is. My intention was to add a nice effect when hovering over the tab. As you can see the 1px line (which is a div with 1px height) is fading in to the top when you hover in and fading out to the bottom when hover out. So for the current state of the tab I just added a bottom-border to the text element not the div. But the problem which occurs now is that the current state border is visible when hovering.

So how can I disable the hover effect when the state is on current?

Thanks in advance!


Here is my public share link: Webflow - Bouloumpasis Holding

I don’t think you can conditionally disable interaction.

But for a workaround you can apply custom CSS as below. This will target that underline under the current tab.

a.tab-link-pf.w--current .tab-underline {
  opacity: 0;
}
1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.