Jump to content

Simple rollover for grid gallery 7.1

Recommended Posts

On 5/13/2022 at 9:34 PM, lmnprty15 said:

@tuanphan Ok great, so far that works! Is there a way to make the transition smoother and make the second image clickable?

To make it clickable, you need to make before-hover image clickable

To make it smoother, try this new code

/* item 1 */
article.Index-gallery-item img, article.Index-gallery-item:hover img {
	transition: all 0.3s;
article.Index-gallery-item:nth-child(4):hover img {
    content: url(https://cdn.pixabay.com/photo/2022/04/13/01/40/plum-blossoms-7129214__480.jpg);
/* item 2 */
article.Index-gallery-item:nth-child(5):hover img {
    content: url(https://cdn.pixabay.com/photo/2022/04/20/01/23/wedding-7144049__340.jpg);
/* item 3 */
article.Index-gallery-item:nth-child(6):hover img {
    content: url(https://cdn.pixabay.com/photo/2022/04/11/16/29/coffee-beans-7126154__340.jpg);


Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.