After testing jquery-resize (github.com/cowboy/jquery-resize), jquery-watch (darcyclarke.me/dev/watch/) and a few others, I found that they were almost what I was looking for, but not exactly what I needed.
My requirements where:
- Monitor one or multiple CSS attribute
- Use custom functions like 'outerWidth(true)' to get the full width including border, margin and padding. 'css('width')' would only return the element width.
- Use requestAnimationFrame instead of setTimeout if available.
- Either jQuery events or direct callbacks
Sources: github.com/leifcr/jquery-csswatch.
Example: leifcr.github.com/jquery-csswatch/example/
The plugin is written in CoffeeScript.