Skip to content

Still tooltip animation effects #130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Still tooltip animation effects #130

wants to merge 2 commits into from

Conversation

dmitryevseev
Copy link

http://wiki.jqueryui.com/w/page/12138112/Tooltip
http://bugs.jqueryui.com/ticket/3772

Fixed: #3772 - work through places where animations could be used

this time solution based on both my previous pull requests:

 - added new method to tooltip object "_animate", that is based on kbwood animation solution posted http://bugs.jqueryui.com/ticket/3772#comment:6

 - default animations fadeIn / fadeOut implemented, thank's Jörn)

 - And some from Jörn:
 "Somewhat related: With this API implemented,
	the close callback could run once the animation is completed,
	instead of as soon as the animation starts.
	Though that could get into trouble
	when the closing animation is cancelled (hover before animation finished)."

	So may be fire trigger close event just before animation fired?
@dmitryevseev
Copy link
Author

second commit just to remove old messy comments

P.S.
Maybe _animation method is a bit too complex for tooltip, and its better to rewrite it to receive only strings as parameter

@scottgonzalez
Copy link
Member

Tooltip animations can't use standard effects because we need to be able to stop the animation in the middle and start the opposite animation. This can easily be handled with a fade to 0 and 1, but can't be easily applied to anything else. Until we have a solution for that problem, we can't land any additional animation options.

@dmitryevseev
Copy link
Author

Thanks, now i see

@jzaefferer
Copy link
Member

PS: I just pushed an update to the tooltip implementation that gets rid of the need to use .stop() at all. So customizing animations should be a lot easier now.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants