Live data from Hacker News

Show HN: Popper.js, a 3KB library to manage tooltips and popovers

github.com

41–50 of 62 posts

Re: Show HN: Popper.js, a 3KB library to manage tooltips and popovers

#41

Earlier quoted context omitted.

I've actually been looking for something that goes the other way. The main issue i've had with Tether and React is that Tether does too much. I don't want a lib that manipulates the DOM itself, I want a overlay positioning engine that I can use to position an element (much like Popper and Tether), but that leaves the positioning up to me (ie let React keep full control of the DOM). Obviously i'd need to subscribe to…

This is exactly the direction I want to take with Popper.js!! The part that sets the style to the DOM will soon be moved to a modifier/plugin so that it can be disabled and replaced with a modifier which just exports the coordinates.

That sounds promising. So conceptually you'd end up with something like popper-engine and popper?

Re: Show HN: Popper.js, a 3KB library to manage tooltips and popovers

#43

Earlier quoted context omitted.

This is exactly the direction I want to take with Popper.js!! The part that sets the style to the DOM will soon be moved to a modifier/plugin so that it can be disabled and replaced with a modifier which just exports the coordinates.

That sounds promising. So conceptually you'd end up with something like popper-engine and popper?

Yup something similar

Re: Show HN: Popper.js, a 3KB library to manage tooltips and popovers

#44
post #30

Earlier quoted context omitted.

Stupid mac scrollbars :P I'll do something to increase the visibility of the examples then. Thanks again!

I think there is CSS that can make your scrollbars actually visible

::-webkit-scrollbar { width: 1em; }

Re: Show HN: Popper.js, a 3KB library to manage tooltips and popovers

#45

Earlier quoted context omitted.

Hi! Popper.js dev here. There are several advantages: - The size is half of Tether (3.5 vs 7); - Popper.js doesn't need any additional CSS in your page; - It works even with elements not placed as direct children of body; - It's much much faster (compare both on mobile, you'll see Tether lagging a lot!); - It automatically detects the size of the tooltip arrow; - Inside Popper.js you already have a way to create tool…

I've actually been looking for something that goes the other way. The main issue i've had with Tether and React is that Tether does too much. I don't want a lib that manipulates the DOM itself, I want a overlay positioning engine that I can use to position an element (much like Popper and Tether), but that leaves the positioning up to me (ie let React keep full control of the DOM). Obviously i'd need to subscribe to…

Totally understand your pain. Did you try https://huu.la? It never messes up with the user's page DOMs and you don't even need to write code to use it.

Re: Show HN: Popper.js, a 3KB library to manage tooltips and popovers

#47
post #45

Earlier quoted context omitted.

I've actually been looking for something that goes the other way. The main issue i've had with Tether and React is that Tether does too much. I don't want a lib that manipulates the DOM itself, I want a overlay positioning engine that I can use to position an element (much like Popper and Tether), but that leaves the positioning up to me (ie let React keep full control of the DOM). Obviously i'd need to subscribe to…

Totally understand your pain. Did you try https://huu.la ? It never messes up with the user's page DOMs and you don't even need to write code to use it.

May you avoid spam please?

Re: Show HN: Popper.js, a 3KB library to manage tooltips and popovers

#48

  > GPU ACCELERATION

  > If supported by browser, poppers will be positioned using CSS translate3d, making your poppers even faster!
How is a transformation accelerated by the GPU? I'm pretty sure translations are done on the CPU before sending the final transformation matrix to the GPU.

Re: Show HN: Popper.js, a 3KB library to manage tooltips and popovers

#49

> GPU ACCELERATION > If supported by browser, poppers will be positioned using CSS translate3d, making your poppers even faster! How is a transformation accelerated by the GPU? I'm pretty sure translations are done on the CPU before sending the final transformation matrix to the GPU.

When you use translate3d, the element is moved to a different rendering layer, rendered by the GPU. This improves the fluidity of it

Re: Show HN: Popper.js, a 3KB library to manage tooltips and popovers

#50

Popovers are the worst feature of the modern web. They're usually a very aggressive way of drawing attention to something I don't care about. Even when they're supposed to be a useful part of a web page interface, it's an obsolete modal dialog paradigm. Should I block popper.js via an ad blocking filter?

I'm not sure I understand your comment, perhaps we have different understanding of what a popover is? For me a popover is essentially a small overlay of additional contextual information, visually attached to whatever it's providing additional context for. Historically triggered by hover, but increasingly triggered by click/touch. A drop-down menu in a navigation bar is a popover.

Maybe he talks about "popups"
Post reply on HN