summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authormichaelperel <michaelsethperel@gmail.com>2023-11-16 15:46:29 -0500
committerGitHub <noreply@github.com>2023-11-16 13:46:29 -0700
commit68661753bd96b4b6d9cc82b4f9f36d52d609244e (patch)
treec4a9893e7788246a0462f0398c1cbe6ac258ca53
parent7ef95e89634983df536757dd38b02f6db101432f (diff)
downloadhtmx-68661753bd96b4b6d9cc82b4f9f36d52d609244e.tar.gz
htmx-68661753bd96b4b6d9cc82b4f9f36d52d609244e.zip
fix indicator styles flash (#1227)
fix flash of indicator when first added to page
-rw-r--r--src/htmx.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/htmx.js b/src/htmx.js
index 5bb79043..03aad245 100644
--- a/src/htmx.js
+++ b/src/htmx.js
@@ -3777,9 +3777,9 @@ return (function () {
if (htmx.config.includeIndicatorStyles !== false) {
getDocument().head.insertAdjacentHTML("beforeend",
"<style>\
- ." + htmx.config.indicatorClass + "{opacity:0;transition: opacity 200ms ease-in;}\
- ." + htmx.config.requestClass + " ." + htmx.config.indicatorClass + "{opacity:1}\
- ." + htmx.config.requestClass + "." + htmx.config.indicatorClass + "{opacity:1}\
+ ." + htmx.config.indicatorClass + "{opacity:0}\
+ ." + htmx.config.requestClass + " ." + htmx.config.indicatorClass + "{opacity:1; transition: opacity 200ms ease-in;}\
+ ." + htmx.config.requestClass + "." + htmx.config.indicatorClass + "{opacity:1; transition: opacity 200ms ease-in;}\
</style>");
}
}