Deniz Akşimşek | | Repost 🔁 https://twitter.com/htmx_org/…
Upcoming _hyperscript feature: Waiting for an event
hyperscript 0.0.4 beta is going to be out soon
a sneak peek:
the wait command can now pause evaluation until an event is received
here a class is added, hyperscript waits for the transition to end, then the element is removed
feature suggested by @DenizAksimsek
<div _="on click add .fade then wait for transitionend then remove">
This is a notice. Click to dismiss.
</div>