Jump to content

Help with custom CSS to match example

Recommended Posts

Posted

Hi, I am currently building my site using the Sonora template and want to achieve this rollover animation effect and linked navigation on my gallery poster images. I assume it will need custom CSS as I haven't been able to figure it out in the standard edit options.

https://mainframe.co.uk/portfolio

As you can see initially the images display and then when the cursor rolls over an image, it activates a trans black image overlay to fade up and the title, subtile and navigation buttons animate on.  The View Project  link  takes you to a "Not Linked" index page and the Quick Look link plays a video in a lightbox.

So far I have made it visually similar, on mine the View Project and Quick Look are part of my subtitle and I then highlighted the View Project and added a link to the text to a non linked index page, which works but maybe not the correct way to do it (See image attached - I don't want the underline on the link) . As yet I have no link on the Quick look text . I am not sure if this is how the example on the Mainframe website is done, I think theirs uses buttons?

Any help to match the mainframe example would be greatly appreciated.

 

Thanks

Screenshot 2024-06-28 at 12.21.47.png

  • Replies 6
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Posted

@tuanphan I found some code (*see below)  so the title/info appears on the rollover and the image darkens/has a dark overlay.

So now I just need to add code to make the Title and subtitle animate in as per this ref

https://mainframe.co.uk/featured

 

*

.design-layout-poster .image-card-wrapper {
  visibility: hidden;
  opacity: 0;
  transition-duration: .5s;
}

.design-layout-poster:hover .image-card-wrapper {
  visibility: visible;
  opacity: 1;
  background-color: hsla(192, 67%, 0%, 0.4);
}

 

Posted
On 7/5/2024 at 10:10 PM, SQUARESURFER said:

@tuanphan I found some code (*see below)  so the title/info appears on the rollover and the image darkens/has a dark overlay.

So now I just need to add code to make the Title and subtitle animate in as per this ref

https://mainframe.co.uk/featured

 

*

.design-layout-poster .image-card-wrapper {
  visibility: hidden;
  opacity: 0;
  transition-duration: .5s;
}

.design-layout-poster:hover .image-card-wrapper {
  visibility: visible;
  opacity: 1;
  background-color: hsla(192, 67%, 0%, 0.4);
}

 

Which page are you referring to? I don't see them on main/home page

https://kangaroo-grey-8tpr.squarespace.com/?noredirect

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

Create an account or sign in to comment

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


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