Jump to content

Squarespace 7.1 - Portfolio Grid - Titles on hover

Recommended Posts

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!
 

Link to comment
  • Replies 7
  • Views 4.2k
  • Created
  • Last Reply
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;
}

 

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
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

Link to comment
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 😄

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
  • 4 months later...

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.