Skip to content

Show unpoly popup on hover #634

Answered by triskweline
spapas asked this question in Q&A
Discussion options

You must be logged in to vote

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))
})

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by spapas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants