Pretty simple question – sometimes Webflow interactions breaks when rendering an array of elements.
I'm familiar with this issue from other type of projects and am pretty sure it's because Webflow interactions need to be reinitialized. But I'm unsure of how to do so in this context.
Any help? Surely someone has done this already thanks.
Hmm, you could try something like setTimeout, but that's not really clean. What are you using the Webflow interactions for? Maybe you could use GSAP and have better control over the initilization. :)
If I gotta switch to GSAP I'll prolly just drop the animations entirely for these, they're not really super important. Just quality of life stuff. Basically the add to cart button is hidden on the product cards until you hover on them, but it's totally fine if they're visible at all times as well as it's only affecting these two places
I see. I like to do these kinds of animations purely with css: So you have your default class where you set the button 4rem down and just add :hover styling to your global styles like so: