Jump to content

Have case study hover images hover automatically on mobile

Recommended Posts

Hi,

Is there any way I can get my case study hover images to hover on mobile?

I know the functionality can sometimes be difficult, but maybe as the user scrolls, what ever case study tile is in the centre of the screen can automatically flick to the case study hover image I have embedded into the code?

here is an example of the code i'm using for them.


/* Nows The Time - Hover Image */
a.grid-item[href="/casestudies/nowsthetime"]:hover img {
    visibility: hidden;
}
.grid-image-inner-wrapper:after {
    visibility: hidden;
}
a.grid-item[href="/casestudies/nowsthetime"]:hover .grid-image-inner-wrapper {
    background-image: url(https://static1.squarespace.com/static/649838326bdf2c09135e2800/t/64efbe1eac7c471ba5f958fa/1693433379839/LG-Nows-The-Time.gif) !important;
background-repeat: no-repeat;
background-size: cover;
}

 

thanks in advance!

 

Regards,
Ryan

Link to comment
  • Replies 4
  • Views 1.5k
  • Created
  • Last Reply

Top Posters In This Topic

  • 8 months later...
On 9/3/2023 at 4:35 AM, tuanphan said:

To make image change on scroll, will require more code & need a Business Plan/higher. What is your site url?

Hey did you have a solution for this? I have a business plan and would love to impliment exactly what they said above!

website: cejlonstudio.com
password: cejlon2024

Thank you!

Link to comment
On 6/3/2024 at 7:00 PM, catemiz said:

Hey did you have a solution for this? I have a business plan and would love to impliment exactly what they said above!

website: cejlonstudio.com
password: cejlon2024

Thank you!

I don't have code, but you can consider, image will appear automatically after X seconds, I can give code to achieve this.

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.