dekiv Posted January 24, 2022 Posted January 24, 2022 Hi guys, site is not live yet so I cant put URL down but was wondering what code is required to unblur a photo when a mouse hovers over it. I've attached some screenshots for reference. Basically, I want the images with the overlay text to be blurred until the mouse hovers over, where then I want the image to not be blurry. Is this possible? Thanks!!
SquareRefresh Posted January 24, 2022 Posted January 24, 2022 38 minutes ago, dekiv said: Basically, I want the images with the overlay text to be blurred until the mouse hovers over, where then I want the image to not be blurry. Is this possible? Hey @dekiv You can use css option filter: blur() https://developer.mozilla.org/ru/docs/Web/CSS/filter-function/blur() , so css code might be: .image { filter: blur(4px); &:hover { filter: blur(0); } } SquareRefresh, premium plugins & templates that have an elevated feel. Plugins: Have your site stand out. Templates: Our templates are designed with versatility in mind.Get Freebies: Sometimes things in life are free. Browser our hand selected free plugins.
dekiv Posted January 24, 2022 Author Posted January 24, 2022 @SquareRefresh Thanks for that but I have never used Squarespace before. Where do I input the CSS for that particular page and section?
SquareRefresh Posted January 24, 2022 Posted January 24, 2022 7 minutes ago, dekiv said: Thanks for that but I have never used Squarespace before. Where do I input the CSS for that particular page and section? Add Your code to the Design > Custom CSS SquareRefresh, premium plugins & templates that have an elevated feel. Plugins: Have your site stand out. Templates: Our templates are designed with versatility in mind.Get Freebies: Sometimes things in life are free. Browser our hand selected free plugins.
dekiv Posted January 24, 2022 Author Posted January 24, 2022 @SquareRefresh Yeah I copied in the code you sent above but it didnt do anything different?
SquareRefresh Posted January 24, 2022 Posted January 24, 2022 5 minutes ago, dekiv said: Yeah I copied in the code you sent above but it didnt do anything different? Ofc, it's just an example, You should to add correct selector instead of my .image class. SquareRefresh, premium plugins & templates that have an elevated feel. Plugins: Have your site stand out. Templates: Our templates are designed with versatility in mind.Get Freebies: Sometimes things in life are free. Browser our hand selected free plugins.
dekiv Posted January 24, 2022 Author Posted January 24, 2022 @SquareRefreshYeah I've tried putting in the correct class but it just blurs the whole page. Not sure what I'm missing here. Site is live now as well - www.harissabp.com.au (What We Do) section
Solution SquareRefresh Posted January 24, 2022 Solution Posted January 24, 2022 9 minutes ago, dekiv said: Yeah I've tried putting in the correct class but it just blurs the whole page. Not sure what I'm missing here. Site is live now as well - www.harissabp.com.au (What We Do) section Try to add next code: [data-section-id="61d3f19180af5560d20173f6"] .grid-item:not(:hover) .grid-image-inner-wrapper { filter: blur(4px); } Let me know if it works for You. dekiv 1 SquareRefresh, premium plugins & templates that have an elevated feel. Plugins: Have your site stand out. Templates: Our templates are designed with versatility in mind.Get Freebies: Sometimes things in life are free. Browser our hand selected free plugins.
dekiv Posted January 24, 2022 Author Posted January 24, 2022 @SquareRefreshAwesome! That worked. Thank you so much! SquareRefresh 1
SquareRefresh Posted January 24, 2022 Posted January 24, 2022 4 minutes ago, dekiv said: Awesome! That worked. Thank you so much! Always happy to help! SquareRefresh, premium plugins & templates that have an elevated feel. Plugins: Have your site stand out. Templates: Our templates are designed with versatility in mind.Get Freebies: Sometimes things in life are free. Browser our hand selected free plugins.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment