Jump to content

Underline link css animation

Recommended Posts

Site URL: https://mouse-cow-ym3g.squarespace.com/


I'm attempting to animate the underline of my footer links on hover. I achieved the desired affect in my Services section, the line animates from left to right on hover.

In my footer, the underline shows up on hover but it's below the entire block, and the width of the entire block, rather than only below each link.

I would so appreciate any insight.


Site password: Bodyforme


Screen Shot 2020-12-03 at 10.59.14 AM.jpg

Screen Shot 2020-12-03 at 11.00.16 AM.jpg

Link to comment
  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

If you use position: absolute; for a:after or a:before, you need to setup position:relative; for a

#footerBlocksMiddle a {
    position: relative;


Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 2 months later...

Create an account or sign in to comment

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

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.