Jump to content

How to change images on hover in a simple list?

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

You mean 3 images under Scrolling Block?

Add this CSS to Website Tools (under Not Linked) > Custom CSS

/* Hover images */
.user-items-list-item-container[data-section-id="6508889b0631426aa96eae8d"] {
	li:nth-child(1):hover img {
    content: url(https://cdn.pixabay.com/photo/2023/09/29/10/21/nuts-8283540_1280.jpg);
}
	li:nth-child(2):hover img {
    content: url(https://cdn.pixabay.com/photo/2023/10/02/04/35/boys-8288460_1280.jpg);
}
	li:nth-child(3):hover img {
    content: url(https://cdn.pixabay.com/photo/2023/09/29/10/21/nuts-8283540_1280.jpg);
}
}

Replace Pixabay with your images urls

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

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.