Skip to main content
Solved

How to Hoverstate and scroll to function at the same time?

  • February 29, 2024
  • 2 replies
  • 197 views

Hi 👋,

i am currently prototyping a website and I want to integrate the function that the page scrolls to a specific part when I click a button. Problem is that I also want to have a hoverstate on that button. I do know how to create the functions separately (Hover and scroll to) but how can I prototype it that it works together?
Is there maybe a way to do it with components and variants?

I would really appreciate it if you would help me with some advice:)
Thanks a lot!

Best answer by Raphael_M

Hi, Katrin.

You need to do the hover event on the variant.

And then the click event on the page directly.

Here is a sample of it:

View original

2 replies

Raphael_M
  • Active Member
  • 328 replies
  • Answer
  • March 1, 2024

Hi, Katrin.

You need to do the hover event on the variant.

And then the click event on the page directly.

Here is a sample of it:


  • Author
  • 1 reply
  • March 5, 2024

Thanks a lot! 🙂 I got it now


Reply


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