Optional
options: StyleObserverOptions = {}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.
Get the names of all properties currently being observed.
Get a CSS property from the target.
Observe the target for changes to one or more CSS properties.
Set a CSS property on the target.
Optional
priority: stringStop 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.