-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Custom animations in tooltips. #13622
Comments
options.animation can now accept a class name and toggle it on show and hide events.
i like this a lot. I think we should just update the default of the backwards compat and adds potentially really cool stuff 👍 |
The options.animation default key has been updated to 'fade'. Animation class modifications are done after everything is ready.
@fat Given a chance, may i add this to modals, popovers and other possibilities? |
Sounds good to me, would be good to confirm with @twbs/team though. I know they have been thinking about doing more animations… want to make sure this sort of thing would fit in good with their ideas |
Punting to v4. |
Hi guys, I am actually looking for this. Is this implemented in BS, could anyone give me a link where I can find info over the implementation. Thanks a bunch ! |
@darma-avalos |
Update for v4Current Tooltip Markup<div class='tooltip'>
....
</div> animation classes and tether.js positioning, both are done on css animations rely heavily on transforms. Proposed<div class='tooltip'> // Tether.js acts here
<div class='tooltip-inner-wrap'> // Animation acts here
...
</div>
</div> ImplementationSee this commit c748695 Demo |
Not yet implemented and your implementation @nanuclickity isn't working in v4_Beta, thanks anyway mate 👍 |
Hmm. |
Problem
Tooltips only support fade animation. here
Animations should be capable of being outsourced to css.
Benefit: You can use libraries like animate.css in tooltips.
Solution
Integration of custom css animation classes.
To enable tooltip animation you pass
{ animation: true }
,after this you can pass
{ animation: 'animated bouceInDown'}
and tooltips will automatically use this string as animation class.
Take animate.css for example, it's an awesome collection of CSS3 based animations.
Initialization is kept simplistic.
Dynamic Initialization
Auto Initialization
The text was updated successfully, but these errors were encountered: