From 63178eba7202288e111faa5da3a7080cbf17652d Mon Sep 17 00:00:00 2001 From: sam detweiler Date: Mon, 2 Dec 2024 03:17:19 -0600 Subject: [PATCH] Export animations (#3644) I am adding the animateIn/Out support to MMM-Config, but I need the list of animations.. but they are not visible in js/animateCSS.js (from require) adding an export satisfies that side issue, these would go in a dropdown list what value can I use for the default behavior? none/default? don't want an error produced.. should I add code to check for this value to prevent error? --- CHANGELOG.md | 1 + js/animateCSS.js | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 62d02f61..9cdc31ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ _This release is scheduled to be released on 2025-01-01._ - [compliments] add support for refreshing remote compliments file, and testcases (#3630) - [linter] Re-add `eslint-plugin-import`now that it supports ESLint v9 (#3586) - [linter] Re-activate `eslint-plugin-package-json` to lint `package.json` +- [core] Add export on animation names ### Removed diff --git a/js/animateCSS.js b/js/animateCSS.js index 057d53c7..a503e106 100644 --- a/js/animateCSS.js +++ b/js/animateCSS.js @@ -155,3 +155,4 @@ function removeAnimateCSS (element, animation) { node.classList.remove("animate__animated", animationName); node.style.removeProperty("--animate-duration"); } +module.exports = { AnimateCSSIn, AnimateCSSOut };