Skip to main content
Question

"Scroll To" from Variant 4 of a component

  • May 12, 2023
  • 1 reply
  • 703 views

Marlena_Capozzolo

Hi everyone! 👋🏾

I created a Component which has 4 Variants that appear by hovering.

In Variant 4 there’s an element (a button) to which I would like to apply the “Scroll to” function to make it scroll to a lower section of the page.

In order to do this, I momentarily set the instance used on my work page to the fourth variant, then I created the “Scroll to” interaction. But when I set the instance back to Default, the interaction doesn’t work. It only seems to work if I keep the instance on Variant 4.

I’d need the instance to be on Default and that only after hovering, thus passing to Variant 4 where the button actually is, the interaction is enabled.

Does anyone know how to help me? 😢

Thanks a lot! 💜

This topic has been closed for replies.

1 reply

  • 1 reply
  • July 19, 2024

You’ll have to make a master component that is outside the variant group that has the “scroll to” interaction to get this to work.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings