Jump to content

Hover over Gallery images (7.1)

Recommended Posts

  • Replies 28
  • Views 1.2k
  • Created
  • Last Reply

Add to Page Settings > Advanced > Header

<style>
  figure.gallery-grid-item {
    position: relative;
}
.gallery-caption {
    position: static;
}
/* title */
.gallery-caption-content {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 7%;
    transition: opacity ease 200ms !important;
    opacity: 0 !important;
pointer-events: none;
}
.gallery-grid-item:hover .gallery-caption-content {
    opacity: 1 !important;
}
/* overlay */
.gallery-grid-item-wrapper:after {
    background: blue;
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity ease 200ms !important;
}
.gallery-grid-item:hover .gallery-grid-item-wrapper:after {
    opacity: 0.75;
}
/* remove gap */
figcaption {
    padding: 0 !important;
}
</style>

 

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
On 10/24/2020 at 2:20 AM, gagica said:

@tuanphan on desktop looks very short even with this amount of text, can we make the text fit the box  or can i controll font size on mobile?

 

thnx man

Add to Page Settings > Advanced > Header

<style>
  @media screen and (max-width:767px) {
  figure.gallery-grid-item * {
    font-size: 10px !important;
}
  }
</style>

 

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
  • 2 weeks later...

@tuanphan  if you can help on these issues it will be great.

 1. Landing page project boxes not clickable ( i know your working on this)

2. Individual projects on mobile showing as 2 column, how do we make them 1 column.

3. About us page, group image on mobile not responsive (can we zoom out so we see them all)

Website: www.robertdeanarchitects.com

 

Thank you T.

Link to comment
3 hours ago, gagica said:

@tuanphan  if you can help on these issues it will be great.

 1. Landing page project boxes not clickable ( i know your working on this)

2. Individual projects on mobile showing as 2 column, how do we make them 1 column.

3. About us page, group image on mobile not responsive (can we zoom out so we see them all)

Website: www.robertdeanarchitects.com

 

Thank you T.

1. Which code did you use? Can you paste here?

2. Add to Home > Design > Custom CSS

/* Masonry one item on mobile */
@media screen and (max-width:767px) {
	.gallery-masonry-wrapper.gallery-masonry-list--ready {
    height: auto !important;
}
figure.gallery-masonry-item {
    position: relative !important;
    width: 100% !important;
    transform: unset !important;
}
.gallery-masonry-item-wrapper {
    height: auto !important;
}
.gallery-masonry .gallery-masonry-item[data-loaded] img {
    width: 100% !important;
}
.gallery-masonry {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
}

3. You mean about banner image?

Add to About Page Settings > Advanced > Header

<style>
  @media screen and (max-width:767px) {
  #page section:first-child {
    min-height: 20vh;
}
  }
</style>

 

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

@tuanphan

i used this one from you. But again i want to keep the bios i just want the change to happen on landing page where projects are. thnx man.

<style>
  figure.gallery-grid-item {
    position: relative;
}
.gallery-caption {
    position: static;
}
/* title */
.gallery-caption-content {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: left;
    align-items: center;
    z-index: 999;
    padding: 7%;
    transition: opacity ease 200ms !important;
    opacity: 0 !important;
pointer-events: none;
}
.gallery-grid-item:hover .gallery-caption-content {
    opacity: 1 !important;
}
/* overlay */
.gallery-grid-item-wrapper:after {
    background: #72649E;
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity ease 200ms !important;
}
.gallery-grid-item:hover .gallery-grid-item-wrapper:after {
    opacity: 0.90;
}
/* remove gap */
figcaption {
    padding: 0 !important;
}
  </style>

<style>
  @media screen and (max-width:767px) {
  figure.gallery-grid-item * {
    font-size: 8px !important;
}
  }
</style>

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.