I’d like to add an animation to my links (tag a), like this, but with a difference. The transition should not make visible an invisible underline, but animate an existing underline.
What code should I use.
You can see my website (and the existing css) here. Anyway I add here the “a” section:
Maybe I was not too clear. I mean: I’d like an effect that make a) before (on hover) invisible the undeline, and b) after re-make it visible but with the transition effect.
This, because it seems to me that a link without underline maybe not be recognized as link…
I used !importrant because you have several rules of different widths targeting the anchors so you need to art least match the weight and then you can remove important
Alternatively you could add the basic class as mentioned above and then in every rule where you have taergetted the anchor you could use:not(.basic) as you have done for the logo.
Lastly if all the links you want to target are in a separate section then you can use the section class to remove the properties as required.