Wednesday, December 28th, 2005

Script.aculo.us 1.5.1 includes new effects

Category: Prototype, Toolkit

<>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.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'})

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:

Posted by Dion Almaer at 9:40 am
3 Comments

++++-
4 rating from 44 votes

3 Comments »

Comments feed

Very nice! I especially love the effect.toggle feature. Works like a charm!

Comment by Marco — December 28, 2005

Yeah, it worked great when I implemented it in Dojo months ago too :-)

Comment by Jason Carreira — December 29, 2005

no

Comment by no — May 10, 2007

Leave a comment

You must be logged in to post a comment.