How about something like: Effect.toggle('d3','appear', {duration: 0.5})

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 14, 2006 5:37 PM
To: Ruby on Rails: Spinoffs
Subject: [Rails-spinoffs] scriptaculous Toggle Appear rate


I have the following code to toggle a basic appear of a div:

<a href="#" onclick="Effect.toggle('d3','appear'); return
false;">Toggle appear</a>

I want to edit the rate in which the effect runs. I can't for the life
of me figure it out. I would like to make the effect complete faster,
like .5 seconds. I've tried to hunt through the effects.js, but have
come up empty handed.

Anyone done this?
Thanks






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---

Reply via email to