Jump to content


Text underline animation

Moderator Tag

Recommended Posts

I was wondering if anyone knew how to create and underline animation similar to the underline hover effect in the codepen?


Say for instance I wanted to have the underline appear from zero height at the start of the timeline, expand to full height and then back down to the normal underline height, is it possible, and to have it span over multiple lines?

See the Pen BdmpVx by Wking (@Wking) on CodePen

Link to comment
Share on other sites

Just to add, I'm not really interested in the gradient/colour of the underline, just the hover animation and being used on multiple lines.

Link to comment
Share on other sites

Hey Hando,


What's wrong with using the approach in the CodePen that you link to? 

  • Like 2
Link to comment
Share on other sites

Hey @hando,


If it should be a simple animation ...


See the Pen eqVzRW by mikeK (@mikeK) on CodePen


Happy tweening ...



  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.