JavaScript ResizeObserver : Object
ResizeObserver allows you to provide a function that is called asynchronously when the size of observed elements
change.
Constructors
Creates a new ResizeObserver that will call callback
when the size of elements passed to observe()
change. Note that callback
will be called at some
time after the current script that causes the resize completes. The observer
passed to
callback
is the newly created ResizeObserver.
Example:
RunResults:
Instance Methods
Registers the observer to be called any time the specified element
's size changes. If
observe()
is called more than once, it will listen to changes on each target
.
Example:
RunResults:
Copyright © PUBLIC Contributors