4 ms·
you can use hx-indicator for a spinner: https://htmx.org/attributes/hx-indicator/ https://htmx.org/attributes/hx-indicator/ depending on how aggressive you wa
by recursivedoubts 3y ago
you can use hx-indicator for a spinner:
https://htmx.org/attributes/hx-indicator/ https://htmx.org/attributes/hx-indicator/
depending on how aggressive you want to get, you can use the preload extension to make the responses snappier:
https://htmx.org/extensions/preload/ https://htmx.org/extensions/preload/
- rpastuszak 3y agoNice, I didn't know about this. Thanks! I can imagine this could probably work quite well with View Transitions.
- recursivedoubts 3y agoyeah, you can toggle on view transitions in a swap via an hx-swap option: https://htmx.org/docs/#view-transitions https://htmx.org/docs/#view-transitions for now css transitions are more widely supported though: https://htmx.org/docs/#css_transitions https://htmx.org/docs/#css_transitions
- infogulch 3y agoI'm using view transitions (have to use Chrome to see it), basically just copy-pasted the example from the htmx site. I'd like to do a sliding-opening animation, but I haven't figured out how to do that yet.