chore(lib): update animate.css 3.7.2 -> 4.1.1
This commit is contained in:
@@ -7,8 +7,8 @@ libFiles:
|
||||
normalizeCSS: normalize.css@8.0.1/normalize.min.css
|
||||
# fontawesome-free@6.1.1 https://fontawesome.com/
|
||||
fontawesomeFreeCSS: '@fortawesome/fontawesome-free@6.1.1/css/all.min.css'
|
||||
# animate.css@3.7.2 https://github.com/daneden/animate.css
|
||||
animateCSS: animate.css@3.7.2/animate.min.css
|
||||
# animate.css@4.1.1 https://github.com/daneden/animate.css
|
||||
animateCSS: animate.css@4.1.1/animate.min.css
|
||||
# smooth-scroll@16.1.3 https://github.com/cferdinandi/smooth-scroll
|
||||
smoothScrollJS: smooth-scroll@16.1.3/dist/smooth-scroll.min.js
|
||||
# autocomplete.js@0.37.1 https://github.com/algolia/autocomplete.js
|
||||
|
||||
@@ -58,12 +58,12 @@ var Util = /*#__PURE__*/function () {
|
||||
|
||||
if (!Array.isArray(animation)) animation = [animation];
|
||||
|
||||
(_element$classList = element.classList).add.apply(_element$classList, ['animated'].concat(_toConsumableArray(animation)));
|
||||
(_element$classList = element.classList).add.apply(_element$classList, ['animate__animated'].concat(_toConsumableArray(animation)));
|
||||
|
||||
var handler = function handler() {
|
||||
var _element$classList2;
|
||||
|
||||
(_element$classList2 = element.classList).remove.apply(_element$classList2, ['animated'].concat(_toConsumableArray(animation)));
|
||||
(_element$classList2 = element.classList).remove.apply(_element$classList2, ['animate__animated'].concat(_toConsumableArray(animation)));
|
||||
|
||||
element.removeEventListener('animationend', handler);
|
||||
if (typeof callback === 'function') callback();
|
||||
@@ -507,7 +507,7 @@ var Theme = /*#__PURE__*/function () {
|
||||
$copy.title = _this5.config.code.copyTitle;
|
||||
var clipboard = new ClipboardJS($copy);
|
||||
clipboard.on('success', function (_e) {
|
||||
_this5.util.animateCSS($code, 'flash');
|
||||
_this5.util.animateCSS($code, 'animate__flash');
|
||||
});
|
||||
$header.appendChild($copy);
|
||||
}
|
||||
@@ -883,32 +883,32 @@ var Theme = /*#__PURE__*/function () {
|
||||
|
||||
_this12.util.forEach($headers, function ($header) {
|
||||
if (scroll > ACCURACY) {
|
||||
$header.classList.remove('fadeInDown');
|
||||
$header.classList.remove('animate__fadeInDown');
|
||||
|
||||
_this12.util.animateCSS($header, ['fadeOutUp', 'faster'], true);
|
||||
_this12.util.animateCSS($header, ['animate__fadeOutUp', 'animate__faster'], true);
|
||||
} else if (scroll < -ACCURACY) {
|
||||
$header.classList.remove('fadeOutUp');
|
||||
$header.classList.remove('animate__fadeOutUp');
|
||||
|
||||
_this12.util.animateCSS($header, ['fadeInDown', 'faster'], true);
|
||||
_this12.util.animateCSS($header, ['animate__fadeInDown', 'animate__faster'], true);
|
||||
}
|
||||
});
|
||||
|
||||
if (_this12.newScrollTop > MINIMUM) {
|
||||
if (isMobile && scroll > ACCURACY) {
|
||||
$fixedButtons.classList.remove('fadeIn');
|
||||
$fixedButtons.classList.remove('animate__fadeIn');
|
||||
|
||||
_this12.util.animateCSS($fixedButtons, ['fadeOut', 'faster'], true);
|
||||
_this12.util.animateCSS($fixedButtons, ['animate__fadeOut', 'animate__faster'], true);
|
||||
} else if (!isMobile || scroll < -ACCURACY) {
|
||||
$fixedButtons.style.display = 'block';
|
||||
$fixedButtons.classList.remove('fadeOut');
|
||||
$fixedButtons.classList.remove('animate__fadeOut');
|
||||
|
||||
_this12.util.animateCSS($fixedButtons, ['fadeIn', 'faster'], true);
|
||||
_this12.util.animateCSS($fixedButtons, ['animate__fadeIn', 'animate__faster'], true);
|
||||
}
|
||||
} else {
|
||||
if (!isMobile) {
|
||||
$fixedButtons.classList.remove('fadeIn');
|
||||
$fixedButtons.classList.remove('animate__fadeIn');
|
||||
|
||||
_this12.util.animateCSS($fixedButtons, ['fadeOut', 'faster'], true);
|
||||
_this12.util.animateCSS($fixedButtons, ['animate__fadeOut', 'animate__faster'], true);
|
||||
}
|
||||
|
||||
$fixedButtons.style.display = 'none';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
normalize.css@8.0.1 https://github.com/necolas/normalize.css
|
||||
fontawesome-free@6.1.1 https://fontawesome.com/
|
||||
simple-icons@6.20.0 https://github.com/simple-icons/simple-icons
|
||||
animate.css@3.7.2 https://github.com/daneden/animate.css
|
||||
animate.css@4.1.1 https://github.com/daneden/animate.css
|
||||
smooth-scroll@16.1.3 https://github.com/cferdinandi/smooth-scroll
|
||||
autocomplete.js@0.37.1 https://github.com/algolia/autocomplete.js
|
||||
lunr.js@2.3.8 https://lunrjs.com/
|
||||
|
||||
14
assets/lib/animate/animate.min.css
vendored
Normal file → Executable file
14
assets/lib/animate/animate.min.css
vendored
Normal file → Executable file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user