You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using this component in order to render tooltips for my site. However, when I want to add an animation to the tooltip, no other animation name works other than 'zoom'. I tried playing around with the motion prop (Which isn't explained in the docs), and transitionName, but neither of those two work.
The zoom animation is a little too playful for my site, and I would just like to know how I can set a simple 'fade' animation instead. I tried looking into all the animation names, but the links I would visit were all dead ends.
It would be great to know the proper way to setup an animation for the tooltip as I can't find a solid place that tells me how to.
The text was updated successfully, but these errors were encountered:
Using transitionName as a prop is questionable. It burdens the dev by forcing them to manage the complexity of "transitionName". To make matters worse, the documentation is unhelpful and unclear -- it basically just says "Just look it up. you're on your own, kid..."
This does not seem like it should be closed. It seems like it would be possible to define the motion prop using https://reactjs.org/docs/animation.html#high-level-api-reactcsstransitiongroup, but that isn't very convenient. Is this something in the works, that will be documented when complete?
I did find that transitionName does work when set to rc-tooltip-zoom, which I assume is because some CSSTransitionGroups are defined in rc-tooltip. It would be convenient to have some presets set up like that.
Hello,
I am using this component in order to render tooltips for my site. However, when I want to add an animation to the tooltip, no other animation name works other than 'zoom'. I tried playing around with the motion prop (Which isn't explained in the docs), and transitionName, but neither of those two work.
The zoom animation is a little too playful for my site, and I would just like to know how I can set a simple 'fade' animation instead. I tried looking into all the animation names, but the links I would visit were all dead ends.
It would be great to know the proper way to setup an animation for the tooltip as I can't find a solid place that tells me how to.
The text was updated successfully, but these errors were encountered: