Jump to content

Portfolio Hover (Text and Color) 7.1

Recommended Posts

  • Replies 3
  • Views 1.4k
  • Created
  • Last Reply
1 hour ago, Alissa_ said:

Site URL: https://anastasiaisachsen.squarespace.com

Hello! Is it possible to have a hover text and color on the portfolio page of my website? Tried using the code I have found here but the text isn't showing up.

 

Thank you!

1.PNG

which code have you used and could you share the site wide password

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
17 hours ago, bangank36 said:

which code have you used and could you share the site wide password

Password: anastasia

 

For the code: I used the one I saw here on the forum:

.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;
}
}
}.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;
}
}
}

 

 

Link to comment
On 12/16/2020 at 3:54 PM, Alissa_ said:

Password: anastasia

 

For the code: I used the one I saw here on the forum:


.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;
}
}
}.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;
}
}
}

 

 

It looks like you solved the problem?

I see on mobile, footer logo looks huge. You can add this to Design > Custom CSS to resize it.

/* resize footer logo */
@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1608028488175_27619 {
    width: 50%;
}
}

Some pages have long content on mobile. You can also consider adding a back to top button.

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

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.