Jump to content

Updating code for hover from classic to Fluid Engine

Recommended Posts

Password: Mannafilm21

 

Hi there,

 

I'm moving an existing site to Fluid Engine and cannot figure out how to transfer this hover effect on multiple images (see image 1);

To target all of them before, I used this code;

 

//Hovereffekt på film-billeder
@media only screen and (min-width: 660px) {
.design-layout-poster:hover .image-card-wrapper {
  visability: hidden;
  opacity: 0;
  transition-duration: .5s;
}

.design-layout-poster .image-card-wrapper {
  visability: visible;
  opacity: 1;
  background-color: hsla(317, 0%, 32%, 0.55);
}
  }
 

But now that I'm building it as separate image blocks, I don't know how to target them?

 

Thanks a lot! 

Skærmbillede 2022-12-20 kl. 12.07.45.png

Skærmbillede 2022-12-20 kl. 12.09.05.png

Link to comment
  • Replies 3
  • Views 236
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Can you share your page link? It wasn't added to the public part of the post 🙂

About me: I'm Paul, a SQSP user for over 18 yrs and a Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL, providing high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji below. Buying a coffee is optional.

Book paid help with domains: Connect a GoDaddy domain. Connect a Squarespace Domain. Domain assistance

Link to comment

You might consider recreating the section with the Classic Editor. To transfer that code to Fluid Engine, it will need a lot of code.

If you still want to use FE, first you need to combine 2 Text Blocks to 1 Text, then we can target it easier

(Currently text in screenshot is in 2 Text Blocks, you need to change it to 1. Do similar for other images)

image.png.8a35e201b0867e50ff95011b23d37c04.png

Next make sure the height of the text block = the height of the image block.
Then let me know, we can adjust the code

(You can do it for first image/text first, if the code works, you can do it for all then)

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

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.