We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dd1531 commit ad7182fCopy full SHA for ad7182f
js/tooltip.js
@@ -84,6 +84,11 @@
84
hide: options.delay
85
}
86
87
+
88
+ if (options.animation && typeof options.animation == 'string') {
89
+ options._animation = options.animation
90
+ options.animation = false
91
+ }
92
93
return options
94
@@ -196,6 +201,7 @@
196
201
197
202
var complete = function() {
198
203
that.$element.trigger('shown.bs.' + that.type)
204
+ if (that.options._animation) that.$tip.addClass(that.options._animation)
199
205
200
206
207
$.support.transition && this.$tip.hasClass('fade') ?
@@ -276,6 +282,7 @@
276
282
function complete() {
277
283
if (that.hoverState != 'in') $tip.detach()
278
284
that.$element.trigger('hidden.bs.' + that.type)
285
+ if (that.options._animation) that.$tip.removeClass(that.options._animation)
279
286
280
287
281
288
this.$element.trigger(e)
0 commit comments