Wednesday, December 28th, 2005
Script.aculo.us 1.5.1 includes new effects
<>p>Do you always wait for the first point release after a final one? Well, Script.aculo.us has just released version 1.5.1 on the heals of the 1.5 release that came with Rails 1.0.This isn’t just a bug fix release though, but adds features:
- 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.DefaultOptionshash - 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'})
And if you are on the bleeding edge of Rails you can use the latest and greatest with:
visual_effect :toggle_slide, ‘element’
visual_effect :toggle_blind, ‘element’
visual_effect :toggle_appear, ‘element’
Related Content:











Very nice! I especially love the effect.toggle feature. Works like a charm!
Yeah, it worked great when I implemented it in Dojo months ago too :-)
no