Skip to main content
Solved

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

  • February 29, 2024
  • 2 replies
  • 265 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:

This topic has been closed for replies.

2 replies

Raphael_M
  • Power Member
  • 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
  • March 5, 2024

Thanks a lot! 🙂 I got it now