Ben's Sandbox
  • Projects
  • Tags

Extending jQuery Animation - Custom Property "Size"


View Blog   View Source  
This example illustrates how to extend the jQuery fx.step object to add custom properties that can be animated with jQuery.animate(). In this demonstration, I have created a "size" property that allows you to animate the height and width around a given origin. The box will animate to the entered parameters and then back to the starting point. More details about this customization is available on my blog.

Size
Height: Width:
Origin
Top: Left:

© Ben Olson 2012 with help from Jekyll Bootstrap and Twitter Bootstrap