![]() ![]() Click Here to view it on CodePen without an iframe. While the resize event fires only for the window nowadays, you can get resize notifications for other elements using the ResizeObserver API. Only handlers registered on the window object will receive resize events. NOTE: Since this CodePen script is in an iframe, it will only work if you resize the window enough to make the iframe change widths. However, resize events are only fired on the window object (i.e. I found this useful snippet here on Stack Overflow, super useful for when you need to fire an event only after the user is done resizing the window, or other events. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |