Resize Observer API with Stimulus
Occasionally, parts of our application that depend on the size of the screen can break because of the user resizing the browser window.
The browser includes features like CSS media queries or container queries. But at times, they are not enough to achieve what we want. That’s where the Resize Observer API comes into play.
In this article, we will cover what it is, how to use the resize observer with Stimulus and show some examples that might be useful for you when building your next application.
https://avohq.io/blog/resize-observer-stimulus
Post a comment