funold Posted February 10 Posted February 10 (edited) Hello together I would like the image effect to be triggered when I hover on the green text links, how is this possible? https://ina-boesch.squarespace.com PW: inaboesch Thanks! Fabian Edited February 10 by funold
Solution tuanphan Posted February 12 Solution Posted February 12 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> funold 1 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!)
funold Posted February 12 Author Posted February 12 (edited) @tuanphan This is a dream, thank you very much!!! Can you tell me how I can still manage the others? Edited February 13 by funold
tuanphan Posted February 15 Posted February 15 Repeat this code first id (div...417) is Text Block ID div...640 is Image Block ID Use this tool to find ID https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment