Check icon
@@ -41,4 +41,11 @@
this.parentElement.remove();
});
}
+
+ // Remove flash messages after the animation ends
+ document.addEventListener('animationend', function(event) {
+ if (event.animationName === 'flashfade') {
+ event.target.remove();
+ }
+ });
diff --git a/config/tailwind.config.js b/config/tailwind.config.js
index ab2b4e68..aaf8dee8 100644
--- a/config/tailwind.config.js
+++ b/config/tailwind.config.js
@@ -16,7 +16,10 @@ module.exports = {
// custom color palette for branding, see https://tailwindcss.com/docs/customizing-colors
colors: {
primary: colors.lime
- }
+ },
+ keyframes: {
+ flashfade: { "0%, 100%": { opacity: "0" }, "5%, 80%": { opacity: "1" } },
+ },
},
},
plugins: [