JQuery Plugin for Watching CSS Styles and Attributes

Years ago, the author wrote a small JQuery plug-in that is used to monitor changes to CSS styles of a DOM element. This plug-in allows for monitoring CSS styles and attributes on an element and get notified if the monitored CSS style changed. This is useful to sync up to objects or take actions when certain conditions are true after an element update.

However, this was years ago and old APIs have now been  depreciated by some browsers. There has always been a fallback but it is proved to be inefficient.

In this post, the author updated and created a new version of the jquery-watch plug-in. He also added a few features like the ability to monitor attributes and CSS styles and moving the code to a GitHub repository along with a better documentation. This now works with newer APIs that are supported by most modern browsers.

Read the rest of the post here: http://www.windowshostingplans.com/wp-admin/post-new.php

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Email
Print