jQuery++ Plugins to Cover Gaps in the jQuery

A jQuery’s bald-spot covering toupee

David Luecke offers a MIT licensed collection of extremely useful DOM helpers and special events for jQuery 1.7 and later. This is not a UI project like jQuery UI or jQuery Tools. Instead, it is all about providing low-level utilities for things that jQuery doesn’t support. If Underscore is jQuery’s functional-programming tie, this is jQuery’s bald-spot covering toupee.


  • Animate - jQuery.animate overwrites $.fn.animate to use CSS 3 animations if possible. It takes the same arguments as the original $.fn.animate and will fall back to jQuery’s JavaScript animation if a CSS animation is not possible.
  • Compare - jQuery.compare adds $.fn.compare to compare the position of two nodes. It returns a number that represents a bitmask showing how they are positioned relative to each other. The following list shows the bitmask, the number and what it means for a $.fn.compare call like $('#foo').compare($('#bar')):
  • Dimensions - jQuery.dimensions overwrites $.fn.innerWidth, $.fn.outerWidth, $.fn.innerHeight, $.fn.outerHeight and enables $.fn.animate to animate these values. Inner dimensions include the padding where outer dimensions also take care of borders and margins (if includeMargin is set to true).

Comments

Be the first to write a comment

You must me logged in to write a comment.