https://github.com/notacouch/jquery-autotransition
CSS transition to/from auto for top, left, width, and height properties.
https://github.com/notacouch/jquery-autotransition
css-transitions jquery-autotransition jquery-plugin
Last synced: 12 months ago
JSON representation
CSS transition to/from auto for top, left, width, and height properties.
- Host: GitHub
- URL: https://github.com/notacouch/jquery-autotransition
- Owner: notacouch
- Created: 2017-03-11T00:03:52.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-17T19:20:34.000Z (about 9 years ago)
- Last Synced: 2025-02-27T04:48:53.026Z (over 1 year ago)
- Topics: css-transitions, jquery-autotransition, jquery-plugin
- Language: JavaScript
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jquery-autotransition
CSS transition to/from `'auto'` for top, left, width, and height properties.
I basically took the code by [Nikita Vasilyev's CSS transition from/to auto values](http://n12v.com/css-transition-to-from-auto/) and turned it into a plugin.
Options are `property` (either `'top'`, `'left'`, `'width'`, or `'height'`), `value` (defaults to `'auto'`), `transition_affix` (default transition asides from `transition-property`, defaults to `' .5s ease-in-out'`).
E.g.
```JavaScript
$('#element').autoTransition({ property: 'top', value: '200px', transition_affix: ' .2s ease-out', callback: function(){ } });
```