Skip to main content
Feb 29, 2024 10:34 AM UTC
Solved

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

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!

This topic has been closed for replies.
Raphael_M
Raphael_MSolution
Power Member
Mar 1, 2024 2:14 AM UTC

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:

2 replies

Raphael_M
Raphael_MSolution
Power Member
Mar 1, 2024 2:14 AM UTC

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:

Katrin7Author
Mar 5, 2024 8:37 AM UTC

Thanks a lot! 🙂 I got it now