RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in