The observer options.
Observed properties to their old values.
The element that changed.
Static
allAll instances ever observed by this class.
Static
propertiesAll properties ever observed by this class.
Static
rootAll root nodes that have observed elements.
Get the names of all properties currently being observed.
Set (ones per root) CSS on an element’s root node (document or shadow root).
Observe the target for changes to one or more CSS properties.
Stop observing a target for changes to one or more CSS properties.
Optional
properties: string | string[]Properties to stop observing. Defaults to all observed properties.
Update the target’s transition property or refresh it if it was overwritten.
Optional
firstTime?: booleanWhether this is the first time the transition is being set.
Update the --style-observer-transition
property to include all observed properties.
The callback to call when the element’s style changes.