Observe when a class changes on a target element, by default the document. Useful for tracking theme changes.
const c = cssClassChange();c.on(msg => { // some class has changed on the document}); Copy
const c = cssClassChange();c.on(msg => { // some class has changed on the document});
Observe when a class changes on a target element, by default the document. Useful for tracking theme changes.