Jump to content

How can I blur my entire gallery but unblur when a checkmark is clicked?

Recommended Posts

  • Replies 2
  • Views 391
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

On 1/5/2022 at 3:19 AM, FxMk said:

Site URL: https://www.fauxmilk.com

Hello! I was wondering if it is possible to blur an entire gallery until the visitor click a checkmark box to unblur it? If so how do I do this?

My galley is here (nsfw warning)

 https://www.fauxmilk.com/illustrations

Password is Hello

Here is a site that does this

(nsfw warning)

https://mscloud.art/nsfw/

Try adding to Home > Design > Custom Css

#collection-5e6a6d1a479366381da2a9b0 {
	.sqs-block-image-figure {
		img {
			filter: blur(10px);
			-webkit-filter: blur(10px);
			-moz-filter: blur(10px);
			-o-filter: blur(10px);
			-ms-filter: blur(10px);
		}
		&:hover {
			img {
				filter: blur(0);
				-webkit-filter: blur(0);
				-moz-filter: blur(0);
				-o-filter: blur(0);
				-ms-filter: blur(0);
			}
		}
	}
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
2 hours ago, bangank36 said:

Try adding to Home > Design > Custom Css

#collection-5e6a6d1a479366381da2a9b0 {
	.sqs-block-image-figure {
		img {
			filter: blur(10px);
			-webkit-filter: blur(10px);
			-moz-filter: blur(10px);
			-o-filter: blur(10px);
			-ms-filter: blur(10px);
		}
		&:hover {
			img {
				filter: blur(0);
				-webkit-filter: blur(0);
				-moz-filter: blur(0);
				-o-filter: blur(0);
				-ms-filter: blur(0);
			}
		}
	}
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

This works by blurring out my gallery but when I hover over the image it'll unblur. Is there a way to blur out the entire gallery but unblur all of it when the visitor checks a checkmark box like how this site does?

(nsfw warning)

https://mscloud.art/nsfw/

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.