Skip to content

🚝 A lightweight jQuery plugin that allows you to animate "auto" values

License

Notifications You must be signed in to change notification settings

darcyclarke/jQuery-Animate-Auto-Plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jQuery animateAuto Plugin

A very simply plugin that extends the native jQuery.fn.animate function to support 'auto' as a viable property for width or height animations.

Example

// Create a test element
var element = $('<div style="height: 20px, width: 30px;"/>').appendTo('body');

// Animate the height and width properties to their respective 'auto' values
element.animate({ height: 'auto', width: 'auto' }, 500);
```

License
------------
MIT License

This plugin is based on the original work done by Darcy Clarke at: http://darcyclarke.me/articles/development/fix-jquerys-animate-to-allow-auto-values/

About

🚝 A lightweight jQuery plugin that allows you to animate "auto" values

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published