Jump to content

Change accordion item title on hover

Go to solution Solved by Beyondspace,

Recommended Posts

  • Solution
3 hours ago, timprsn said:

Hey, I am looking to change the font-family of the accordion title to change on hover, however I want it to change only when actually hovering over the text, right now it changes even when hovering next to it. Is there a way to do so with CSS?

Link: https://www.euphoricstudios.com/architecture/open-house

 

Screenshot 2023-01-02 at 11.30.22.png

Screenshot 2023-01-02 at 11.30.28.png

You can try the following code 

.sqs-block-accordion .accordion-item__title {
  flex: unset;
}
.sqs-block-accordion .accordion-item__click-target:hover {
  font-family: 'Sk-Modernist-Regular';
}
.accordion-item__title:hover {
  font-family: "Sk-Modernist-Bold";
}

 

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
3 hours ago, Beyondspace said:

You can try the following code 

.sqs-block-accordion .accordion-item__title {
  flex: unset;
}
.sqs-block-accordion .accordion-item__click-target:hover {
  font-family: 'Sk-Modernist-Regular';
}
.accordion-item__title:hover {
  font-family: "Sk-Modernist-Bold";
}

 

This works, thanks a lot!:)

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.