Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
SpeckleDigital

Squarespace 7.1 - Portfolio Grid - Titles on hover

Question

Site URL: https://quiet-conqueror.squarespace.com/

Hi all, 

Looking for some assistance with 7.1. I am trying to get the title / excerpt on the portfolio grid to show on hover (much like this effect here - http://demo.squarestud.io/grid-gallery-9

Here is what I have tried - 
 

/*Hover State on images*/
.portfolio-grid-basic {
.grid-image:hover {
  img {
    -webkit-filter: brightness(0.4);
    -moz-filter: brightness(0.4);
    filter: brightness(0.4);
  }
  .portfolio-title {
    opacity: 1 !important;
  }
  .portfolio-title strong {
  opacity: 1 !important;
  }
}
img {
    -webkit-filter: brightness(0.9);
    -moz-filter: brightness(0.9);
    filter: brightness(0.9);
    transition: all ease-in-out 600ms !important;
}
.portfolio-title {
  p {
    max-width: 90% !important;
  }
  white-space: initial !important;
  text-overflow: initial !important;
transform: translateY(-0.5em);
-webkit-transform: translateY(-0.5em);
-moz-transform: translateY(-0.5em);
-ms-transform: translateY(-0.5em);
}
.portfolio-title {
pointer-events:none !important;
    display: block !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 20px;
    line-height: 25px;
    text-align: center !important;
    padding: 0px;
position: absolute;
top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);    width: 80%;
    opacity: 0;
    transition: all ease-in-out 600ms !important;
  }
.portfolio-title strong {
  display: block;
  font-weight: 200;
  font-size: 15px;
  opacity: 1;
  transition: all ease-in-out 600ms !important;
}
.portfolio-title strong:before {
  display: block;
  text-align: center;
}
.portfolio-title p {
    padding-left: 10px;
    padding-right: 10px;
  margin: 0px;
  opacity: 0 !important;
  transition: all ease-in-out 600ms !important;
}
@media (max-width : 870px) {
  .portfolio-title {
  opacity: 1 !important;
  font-size: 11px !important;
  }
.portfolio-title strong {
  display: none !important;
  opacity: 0 !important;
}
.portfolio-title a {
  display: block !important;
}
}
@media (max-width : 768px) {
  .portfolio-title {
  opacity: 1 !important;
  font-size: 11px !important;
  }
.portfolio-title strong {
  display: none !important;
  opacity: 0 !important;
}
.portfolio-title a {
  display: block !important;
}
}
}

URL is https://quiet-conqueror.squarespace.com/
Password is squarespace. 

Thanks so much!
 

Share this post


Link to post

6 answers to this question

Recommended Posts

  • 0

This is a great question/request. Its logical that on portfolio block to be able to display a short text along with the title.

Its a very logical thing that probably many people will want including me! I am trying to figure it out with no luck up to now. 

Share this post


Link to post
  • 0
23 hours ago, AshleighLauren said:

@tuanphan the password is squarespace

 

 

14 minutes ago, Panos_vsl said:

This is a great question/request. Its logical that on portfolio block to be able to display a short text along with the title.

Its a very logical thing that probably many people will want including me! I am trying to figure it out with no luck up to now. 

Add to Home > Design > Custom CSS

a.grid-item {
    position: relative;
}
.portfolio-text {
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 999;
    width: 50% !important;
}
a.grid-item:hover .portfolio-title {
    opacity: 1 !important;
}

 


COVID-19Free priority support for all users (29/03 - 30/04). You can tag me (@tuanphan) or send to my email.

With paid support, see here

How to Setup Password & Share URL

 

Share this post


Link to post
  • 0
9 minutes ago, tuanphan said:

 

Add to Home > Design > Custom CSS


a.grid-item {
    position: relative;
}
.portfolio-text {
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 999;
    width: 50% !important;
}
a.grid-item:hover .portfolio-title {
    opacity: 1 !important;
}

 

This moves the title on mouse over from the center of the thumbnail to the corner. 

 

 

 

I guess what @AshleighLauren  is trying to achieve and also me is somehow this: 

 

 

 

Screenshot 2020-02-27 at 12.57.18 AM.png

Share this post


Link to post
  • 0
1 hour ago, Panos_vsl said:

This moves the title on mouse over from the center of the thumbnail to the corner. 

I guess what @AshleighLauren  is trying to achieve and also me is somehow this: 

The above code, for https://quiet-conqueror.squarespace.com/?_ga=2.73689814.59696825.1570102444-1974466938.1557726403

I'm not sure it will work for other sites 😄


COVID-19Free priority support for all users (29/03 - 30/04). You can tag me (@tuanphan) or send to my email.

With paid support, see here

How to Setup Password & Share URL

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...