diff options
author | michaelperel <michaelsethperel@gmail.com> | 2023-11-16 15:46:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-16 13:46:29 -0700 |
commit | 68661753bd96b4b6d9cc82b4f9f36d52d609244e (patch) | |
tree | c4a9893e7788246a0462f0398c1cbe6ac258ca53 | |
parent | 7ef95e89634983df536757dd38b02f6db101432f (diff) | |
download | htmx-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.js | 6 |
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>"); } } |