Jump to content

Display text block when hover over image block

Recommended Posts

  • Replies 3
  • Views 1.4k
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...
  • 2 weeks later...

You can use this code to Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $('.fe-block-8d04ecdf697d7a4bd972, .fe-block-33f58733a3e1e4aa3ae3, .fe-block-e99fc51255a5951f5135').hover(function(){
        $('div#block-59531790ecd3a9eeb59e').css('opacity','1');
    })
});
</script>
<style>
div#block-59531790ecd3a9eeb59e {
    opacity: 0;
}
</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!)

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.