elmeto Posted August 15 Share Posted August 15 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
HoaLT Posted August 16 Share Posted August 16 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
elmeto Posted August 16 Author Share Posted August 16 Hi, thanks very much for this. Unfortunately it didn't work. It added a weird transition whereby the H1 text transformed from tiny to huge!... I had to remove it as the site is live but I'm attaching a screen recording. Any ideas why it would do that? Thanks Screen Recording 2024-08-16 at 20.38.15.mov Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment