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

Show Title and reveal subtitle on hover

Question

Site URL: https://www.sourdoughsocial.com/services

I am hoping to have the titles for my images to SHOW when you first launch the page, but then when you hover over, would like to have the text change to subtitle. 

 

An example of what I would like to do is on this page (scroll down to the twin images, entitled "Creative" and "Performance"): 

https://spherical.co/about/

(And yes, I realize this is not a squarespace site...)

 

Here is the code that I have built on the back end, which has the hover text, but it makes it ALL hovered.
Currently have it on collection ID for only my "Services" page. 

 

#collection-5e7bba06be11fc596290cc91

{

.design-layout-poster .image-card-wrapper {

  visibility: hidden;

  opacity: 0;

  transition-duration: .35s;

}

 

.design-layout-poster:hover .image-card-wrapper {

  visibility: visible;

  opacity: 1;

  background-color: hsla(275, 30%, 72%, 0.64)

  }

}

 

 

 

Thanks in advance for your help! 

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 0

Remove above code. and Use this code

/* hide sub title */
div#page-5e7bba06be11fc596290cc91 .image-subtitle-wrapper {
    opacity: 0;
    transition: all ease-in-out 0.5s;
}
/* show sub title on hover */
div#page-5e7bba06be11fc596290cc91 .image-block:hover .image-subtitle-wrapper {
    opacity: 1;
    transition: all ease-in-out 0.5s;
}

 


You can send your question to my email to get faster answer.

How to Setup Password & Share URL  Squarespace Customer Care

Share this post


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

Remove above code. and Use this code


/* hide sub title */
div#page-5e7bba06be11fc596290cc91 .image-subtitle-wrapper {
    opacity: 0;
    transition: all ease-in-out 0.5s;
}
/* show sub title on hover */
div#page-5e7bba06be11fc596290cc91 .image-block:hover .image-subtitle-wrapper {
    opacity: 1;
    transition: all ease-in-out 0.5s;
}

 

This is excellent!!! thank you SO much!

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