mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 15:25:26 +00:00
fix indicator styles flash (#1227)
fix flash of indicator when first added to page
This commit is contained in:
parent
7ef95e8963
commit
68661753bd
@ -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>");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user