Jump to content

[Customization] Gallery Hover Effect: Julia Effect

Recommended Posts

Site URL: https://beyondspace7-1.squarespace.com/?password=1234

Added new Gallery Effect on the Directory, you can use Copy button or take the code down below

https://beyondspace7-1.squarespace.com/?password=1234

Set up caption like so 

<h2>Passionate <span>Julia</span></h2> 
<div> 
  <p>Julia dances in the deep dark</p> 
  <p>She loves the smell of the ocean</p> 
  <p>And dives into the morning light</p> 
</div>

image.png.92d4082bc70e202d4a7b3b29635d95c9.png

 

chrome-capture (3).gif

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

/* Common style */
.gallery-grid-item {
	position: relative;
	float: left;
	overflow: hidden;
	background: #3085a3;
	text-align: center;
	cursor: pointer;
	box-sizing: border-box;
}

.gallery-grid-item img {
	display: block;
	min-height: 100%;
	max-width: 100%;
	opacity: 0.8;
}

.gallery-grid-item .gallery-caption {
	padding: 0.5em;
	color: #fff;
	text-transform: uppercase;
	font-size: 1.25em;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	box-sizing: border-box;
}

.gallery-grid-item .gallery-caption::before,
.gallery-grid-item .gallery-caption::after {
	pointer-events: none;
}

.gallery-grid-item .gallery-caption,
.gallery-grid-item .gallery-caption > a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.gallery-grid-item .gallery-caption > a {
	z-index: 1000;
	text-indent: 200%;
	white-space: nowrap;
	font-size: 0;
	opacity: 0;
}

.gallery-grid-item h2 {
	word-spacing: -0.15em;
	font-weight: 300;
	color: #fff;
}

.gallery-grid-item h2 span {
	font-weight: 800;
}

.gallery-grid-item h2,
.gallery-grid-item .gallery-caption-wrapper div p {
	margin: 0;
}

/* Override default caption */
.gallery-grid-item .gallery-caption-wrapper div p.gallery-caption-content {
	display: none;
}

.gallery-grid-item .gallery-caption-wrapper div p {
	letter-spacing: 1px;
	font-size: 68.5%;
}

.gallery-grid-item {
	background: #2f3238;
}

.gallery-grid-item img {
	max-width: none;
	height: 400px;
	-webkit-transition: opacity 1s, -webkit-transform 1s;
	transition: opacity 1s, transform 1s;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.gallery-grid-item .gallery-caption {
	text-align: left;
}

.gallery-grid-item h2 {
	position: relative;
	padding: 0.5em 0 0;
}

.gallery-grid-item .gallery-caption-wrapper div p {
	display: inline-block;
	margin: 0 0 0.25em;
	padding: 0.4em 1em;
	background: rgba(255,255,255,0.9);
	color: #2f3238;
	text-transform: none;
	font-weight: 500;
	font-size: 75%;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(-360px,0,0);
	transform: translate3d(-360px,0,0);
}

.gallery-grid-item .gallery-caption-wrapper div p:first-child {
	-webkit-transition-delay: 0.15s;
	transition-delay: 0.15s;
}

.gallery-grid-item .gallery-caption-wrapper div p:nth-of-type(2) {
	-webkit-transition-delay: 0.1s;
	transition-delay: 0.1s;
}

.gallery-grid-item .gallery-caption-wrapper div p:nth-of-type(3) {
	-webkit-transition-delay: 0.05s;
	transition-delay: 0.05s;
}

.gallery-grid-item:hover .gallery-caption-wrapper div p:first-child {
	-webkit-transition-delay: 0s;
	transition-delay: 0s;
}

.gallery-grid-item:hover .gallery-caption-wrapper div p:nth-of-type(2) {
	-webkit-transition-delay: 0.05s;
	transition-delay: 0.05s;
}

.gallery-grid-item:hover .gallery-caption-wrapper div p:nth-of-type(3) {
	-webkit-transition-delay: 0.1s;
	transition-delay: 0.1s;
}

.gallery-grid-item:hover img {
	opacity: 0.4;
	-webkit-transform: scale3d(1.1,1.1,1);
	transform: scale3d(1.1,1.1,1);
}

.gallery-grid-item:hover .gallery-caption-wrapper div p {
	opacity: 1;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}

@media only screen and (max-width: 640px) {
	.gallery-grid-item h2 {
		font-size: 1.1em;
	}
	.gallery-grid-item .gallery-caption-wrapper div p {
	    font-size: 55%;
}

 

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. 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.