Fix animation reset in Firefox
This commit is contained in:
parent
0c979cd79f
commit
7884fef5f3
2 changed files with 7 additions and 3 deletions
|
@ -587,7 +587,9 @@ p.editable:hover i {
|
||||||
color: white;
|
color: white;
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.repo #clipboardCopied.animated {
|
||||||
-webkit-animation: fadeOut 4s ease-in-out 0s 1 forwards;
|
-webkit-animation: fadeOut 4s ease-in-out 0s 1 forwards;
|
||||||
-moz-animation: fadeOut 4s ease-in-out 0s 1 forwards;
|
-moz-animation: fadeOut 4s ease-in-out 0s 1 forwards;
|
||||||
-ms-animation: fadeOut 4s ease-in-out 0s 1 forwards;
|
-ms-animation: fadeOut 4s ease-in-out 0s 1 forwards;
|
||||||
|
|
|
@ -4,11 +4,13 @@ $.fn.clipboardCopy = function() {
|
||||||
// Resets the animation.
|
// Resets the animation.
|
||||||
var elem = $('#clipboardCopied')[0];
|
var elem = $('#clipboardCopied')[0];
|
||||||
elem.style.display = 'none';
|
elem.style.display = 'none';
|
||||||
|
elem.classList.remove('animated');
|
||||||
|
|
||||||
// Show the notification.
|
// Show the notification.
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
elem.style.display = 'inline-block';
|
elem.style.display = 'inline-block';
|
||||||
}, 1);
|
elem.classList.add('animated');
|
||||||
|
}, 10);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Reference in a new issue