I was playing around with JS.hide
to add animations when an element gets removed from the DOM(I guess the correct term should be when the element is hidden). And I put 5 seconds for the time
option in JS.hide: JS.hide(to: "$some-element", transition: "fade-out", time: 5000)
. And I observed that the element was still in DOM for 5 seconds, though hidden.
So, does this mean, during the transition, if some event were to happen, and DOM is to be updated, I’ll only be able to see those DOM updated after the transition has finished?