-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Description
It seems like the view transitions API of HTMX doesn't play nicely with the SSE extension (maybe related to #65?)
With the following HTML, the elements do not have an animated transition when updated via SSE (just shuffling the order of them), but when the order is shuffled via the GET request from the button they do transition as expected (with an animation).
<ul
id="items"
hx-swap="transition:true"
hx-ext="sse"
sse-connect="/sse"
sse-swap="values"
>
<li id="item0" style="view-transition-name:item_a;">a</li>
<li id="item1" style="view-transition-name:item_b;">b</li>
<li id="item2" style="view-transition-name:item_c;">c</li>
<li id="item3" style="view-transition-name:item_d;">e</li>
</ul>
<button hx-get="/list" hx-target="#items" hx-swap="transition:true">Click</button>
Metadata
Metadata
Assignees
Labels
No labels