cdiller Posted February 19 Share Posted February 19 Hi- I am trying to get a hover effect over text. I want it where if you hover over the text it changes to a GIF AND keeps the text visible. Please let me know what to add to the code. Thanks. // Hover GIF Text ABOUT US// #block-953252b406bf6ce5a768:hover { content: url("https://static1.squarespace.com/static/656689508eb6cf077dbca3a8/t/65d27f186c03c044d215ca07/1708293915513/ABOUT+US+%281%29.gif"); } Link to comment
tuanphan Posted February 21 Share Posted February 21 Hi, Can you share link page where you use text? We can check & give exact code easier But you can also try this code first (I changed content to background) #block-953252b406bf6ce5a768:hover { background-image: url("https://static1.squarespace.com/static/656689508eb6cf077dbca3a8/t/65d27f186c03c044d215ca07/1708293915513/ABOUT+US+%281%29.gif"); background-size: cover; background-repeat: no-repeat; } 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment