File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 11import { LitElement , html , nothing } from 'lit' ;
22import { property , query } from 'lit/decorators.js' ;
33import { type Ref , createRef , ref } from 'lit/directives/ref.js' ;
4+ import { EaseOut } from '../../animations/easings.js' ;
45import { addAnimationController } from '../../animations/player.js' ;
56import { fadeOut } from '../../animations/presets/fade/index.js' ;
67import { scaleInCenter } from '../../animations/presets/scale/index.js' ;
@@ -247,8 +248,11 @@ export default class IgcTooltipComponent extends EventEmitterMixin<
247248 }
248249
249250 private async _toggleAnimation ( dir : 'open' | 'close' ) {
250- const animation = dir === 'open' ? scaleInCenter : fadeOut ;
251- return this . _animationPlayer . playExclusive ( animation ( ) ) ;
251+ const animation =
252+ dir === 'open'
253+ ? scaleInCenter ( { duration : 150 , easing : EaseOut . Quad } )
254+ : fadeOut ( { duration : 75 , easing : EaseOut . Sine } ) ;
255+ return this . _animationPlayer . playExclusive ( animation ) ;
252256 }
253257
254258 private async _forceAnimationStop ( ) {
You can’t perform that action at this time.
0 commit comments