Show unpoly popup on hover #634
-
Is it possivle to display the popup on hover somehow? I've got sometihng like this and works fine when clicked but I'd rather display it on hover. TIA |
Beta Was this translation helpful? Give feedback.
Answered by
triskweline
May 22, 2024
Replies: 1 comment
-
Unpoly popups were not designed to serve as tooltips. I recommend using one of the many lightweight tooltip solutions available as JS or CSS-only instead. That said you can probably use the JS API to follow a link on hover: up.compiler('a.hover-popup', (element) => {
element.addEventListener('mouseenter', () => up.link.follow(element))
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
spapas
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unpoly popups were not designed to serve as tooltips. I recommend using one of the many lightweight tooltip solutions available as JS or CSS-only instead.
That said you can probably use the JS API to follow a link on hover: