* fix: multi lines and spaces issues * fix: eslint operator-linebreak issue * fix: eslint quotes issue * fix: remaining quotes issues * fix: eslint object curly newline issue * fix: eslint object curly spacing issue * fix: eslint brace-style issues * fix: react jsx indent and props issues * fix: eslint trailing spaces issues * fix: eslint linbreak style issue * fix: eslint space unary operator issue * fix: eslint line around directives issue * fix: void and typeof space unary ops issue
15 lines
691 B
JavaScript
15 lines
691 B
JavaScript
(function() {
|
|
this.AnimationUtil = (function() {
|
|
function AnimationUtil() {}
|
|
AnimationUtil.triggerAnimation = function(messageElement) {
|
|
// The following lines are necessary to re-trigger the CSS animation on span.action-toggle-message
|
|
// To see how it works, please see `Another JavaScript Method to Restart a CSS Animation`
|
|
// at https://css-tricks.com/restart-css-animation/
|
|
messageElement.removeClass('is-fleeting');
|
|
messageElement.offset().width = messageElement.offset().width;
|
|
messageElement.addClass('is-fleeting');
|
|
};
|
|
return AnimationUtil;
|
|
}).call(this);
|
|
}).call(this);
|