great-lifeguard-29000
03/11/2023, 5:43 AMhx-swap-oob
with a delete and css transition as shown in the delete row example (https://htmx.org/examples/delete-row/)? I've got everything working except for the fade. Here is my fragment that is sent for the swap (it's Clojure, but you should get the idea):
(html5
[:div {:id (format "code-block-%s" message-id)
:style "opacity: 0; transition: opacity 1s linear;"
:hx-swap-oob "delete"}])
The swap works great, but happens instantaneously.freezing-waitress-26396
03/11/2023, 7:44 AMhtml
<tbody hx-confirm="Are you sure?" hx-target="closest tr" hx-swap="outerHTML swap:1s">
<tr>
notice the hx-swap="swap:1s"
on the tbodyrefined-pillow-25368
03/12/2023, 8:08 PMbig-airline-13935
03/13/2023, 2:16 AMrefined-waiter-90422
03/13/2023, 10:46 AMorange-umbrella-16693
03/13/2023, 12:10 PMstocky-dentist-80693
03/13/2023, 12:15 PMshy-zebra-22292
03/13/2023, 1:15 PMmysterious-toddler-20573
03/13/2023, 3:57 PMminiature-lizard-24702
03/13/2023, 5:37 PMmysterious-vr-69200
03/13/2023, 6:36 PMgorgeous-ghost-95789
03/13/2023, 6:39 PMmysterious-vr-69200
03/13/2023, 6:42 PMgorgeous-ghost-95789
03/13/2023, 6:43 PMgorgeous-ghost-95789
03/13/2023, 6:44 PMhtmx.process()
to tell htmx that a new page fragment has been added to the DOM.mysterious-vr-69200
03/13/2023, 6:45 PMgorgeous-ghost-95789
03/13/2023, 6:45 PMmysterious-vr-69200
03/13/2023, 6:46 PMgorgeous-ghost-95789
03/13/2023, 6:46 PMgorgeous-ghost-95789
03/13/2023, 6:46 PMhtmx.process
and It runs through that node (and it's descendants) and wires up htmx into all of their event handlers.mysterious-vr-69200
03/13/2023, 6:47 PMmysterious-vr-69200
03/13/2023, 6:48 PMmillions-state-14961
03/13/2023, 6:49 PMgorgeous-ghost-95789
03/13/2023, 6:50 PMgorgeous-ghost-95789
03/13/2023, 6:50 PMmysterious-vr-69200
03/13/2023, 6:56 PMmysterious-vr-69200
03/13/2023, 7:20 PMrefined-manchester-67193
03/14/2023, 1:10 AMmysterious-toddler-20573
03/14/2023, 1:21 AM