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";
}

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, 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.