Upcoming features for script.aculo.us
December 14th, 2005With script.aculo.us 1.5 finally out, it’s now time to add great new features. The SVN trunk already has some brand-new stuff added:
- Effect.toggle allows silly easy implementation of toggling elements with Slide, Blind and Appear/Fade effects:
Effect.toggle('element_id','slide')
- Effect defaults can now be set globally by manipulating the
Effect.DefaultOptions
hash - Scoped effect queues for multiple parallel running effect queues:
Effect.Appear('element_id', {queue:{scope:'myscope', position:'end'}})
- Dynamic loading of components allows you to tune your site per-page for including only the script.aculo.us components you need:
<script src="scriptaculous.js?load=effects,dragdrop" type="text/javascript"></script>
- New Effect.Move that replaces the old Effect.MoveBy that also allows for absolute movement:
new Effect.Move('element_id', {x:30, y:10, mode: 'absolute'})
Special thanks to David Zülke for coming up with the basis for the scoped effects queues and the dynamic loading!
This and more coming soon to a script.aculo.us near you. 🙂
Tweet