Jump to content

Hover ease in-out only works on IN

Recommended Posts

I've added some code to ease in and out the transition to colour on hover but it's only working on ease-in, not out. It's the big yellow text that says 'MOTION AND EMOTION' at the top of the home page. What am I doing wrong? This is the code I used:

 

/* Remove underline from links */
a {
text-decoration: none!important;
  &:hover {
      color: black;
  }
}

/* Change colour on hover and ease in/out */
h1 a:hover span {
    color: #ffffff !important;
    transition: 300ms ease-in-out;
}

Link to comment
  • Replies 2
  • Views 422
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

17 hours ago, elmeto said:

I've added some code to ease in and out the transition to colour on hover but it's only working on ease-in, not out. It's the big yellow text that says 'MOTION AND EMOTION' at the top of the home page. What am I doing wrong? This is the code I used:

 

/* Remove underline from links */
a {
text-decoration: none!important;
  &:hover {
      color: black;
  }
}

/* Change colour on hover and ease in/out */
h1 a:hover span {
    color: #ffffff !important;
    transition: 300ms ease-in-out;
}

we should add the transition on un-hover state

/* Change colour on hover and ease in/out */
h1 a span {
    transition: 300ms ease-in-out;
}

Let me know how it works on your site

Press 👍  or mark my comment as solution if you find my sharing useful

🆒 Squarespace pinchzoom lightbox plugin (affiliate link)

👁‍🗨 360 degree photo viewer (affiliate link)

Link to comment

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.