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 222
  • 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've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

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.