Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
showNewTooltip(...args) {
if (this.isActive) {
this.hide();
TweenLite.delayedCall(0.5, () => {
this.setContent(...args);
this.show();
this.scheduleDeactivation();
});
} else {
this.setContent(...args);
this.show();
this.scheduleDeactivation();
}
}
hide() {
TweenLite.to(this.$id, 0.3, {y: 5, opacity: 0, ease: Power1.easeInOut});
TweenLite.delayedCall(0.4, () => {
this.$el.addClass(CLASSES.IS_INACTIVE);
});
}
hide() {
TweenLite.to('#news-feed', 0.3, {y: -50});
TweenLite.delayedCall(0.3, () => {
this.$el.addClass(CLASSES.IS_INACTIVE);
});
}
hide() {
TweenLite.to('#dataset-overlay', 0.2, {y: 20, opacity: 0, ease: Power1.easeOut});
TweenLite.delayedCall(0.4, () => {
this.$el.addClass(CLASSES.IS_INACTIVE);
});
}
hide() {
TweenLite.to('#js-endgame-overlay', 0.2, {y: 20, opacity: 0, ease: Power1.easeOut});
TweenLite.delayedCall(0.4, () => {
this.$el.addClass(CLASSES.IS_INACTIVE);
});
}
hide() {
if (this.type === 'ml') {
TweenLite.to('#js-resume', 0.3, {x: 50, opacity: 0});
TweenLite.delayedCall(0.4, () => {
this.$el.addClass(CLASSES.IS_INACTIVE);
});
} else {
this.$el.addClass(CLASSES.IS_INACTIVE);
}
}
hide() {
TweenLite.to('#js-person-tooltip', 0.2, {y: 5, opacity: 0, ease: Power1.easeInOut});
TweenLite.delayedCall(0.4, () => {
this.$el.addClass(CLASSES.IS_INACTIVE);
});
this.isActive = false;
}