YUI Resizable Component

Written by on November 28th, 2006 in Ajax News.

Jack Slocum keeps ‘em coming with his detailed post on a reusable component for resizing elements.

Jack’s YAHOO.ext.Resizable component does what it says on the tin, and he shows you:

  • Basic Resizable div
  • Wrapped elements (e.g. text area inside)
  • Preserve Ration (e.g. image resizing)
  • Transparent Handles
  • Customizable Handles
  • Snapping to increments
  • Animated Transitions
var animated = new YAHOO.ext.Resizable(’animated’, {
    width: 200,
    height: 100,
    minWidth:100,
    minHeight:50,
    animate:true,
    easing: YAHOO.util.Easing.backIn,
    duration:.6
});
 

YUI Resizable

Source: Ajaxian
Original Article: http://ajaxian.com/archives/yui-resizable-component

Leave a Reply

You must be logged in to post a comment.



Site Navigation