react-portal-tooltip icon indicating copy to clipboard operation
react-portal-tooltip copied to clipboard

Ability to tweak disappear animation speed

Open ndelangen opened this issue 6 years ago • 3 comments

I'd like the appear & disappear animation to be quite a bit faster.

How can I achieve this?

I'd want something like 160ms.

ndelangen avatar Sep 13 '18 08:09 ndelangen

There is a tooltipTimeout prop to control that: https://github.com/romainberger/react-portal-tooltip#props

romainberger avatar Sep 13 '18 08:09 romainberger

Yes, thank for the help @romainberger, I've read the docs.

Seems like that prop is only for removing or lengthening the delay when removing the tooltip

I've set it to 0, but the animation is still taking half a second.

ndelangen avatar Sep 13 '18 08:09 ndelangen

oh you're right, my bad. For this there's no way to customize it for now, but it could be added as a prop.

romainberger avatar Sep 13 '18 08:09 romainberger