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
  • 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: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!
If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.
Improve your online store with our extensions.

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.