Jump to content

Trigger image effect via text link

Go to solution Solved by tuanphan,

Recommended Posts

  • Solution
Posted

You try this code to Website Tools > Code Injection > Footer. This code for Bucher item. If it works, I will send guide for other items

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
jQuery(document).ready(function($){
  $('div#block-ceabdb2d8ce3de1de417 h2').hover(function(){
      $('div#block-d027dacb8435a2999640').addClass('hover-img');
  }, function(){
      $('div#block-d027dacb8435a2999640').removeClass('hover-img');
  });
})
</script>
<style>
  .hover-img {
    filter: grayscale(0);
   transition: .5s ease-in-out;
}
</style>

 

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!)

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.