How can I slow/speed up the combo effects? Thanks
Use the duration option for this: Effect.SlideUp(''blah'',{duration:2.5}); Will make the effect have a duration of 2.5 seconds. -Thomas Am 09.04.2006 um 03:35 schrieb Daniel Elmore:> How can I slow/speed up the combo effects? > > Thanks > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
For some reason it just isn''t working on combo effects. new Effect.Squish(''APhoto'', {duration:3.0} ); It still shoots through in about one second, whatever the default is. -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Thomas Fuchs Sent: Sunday, April 09, 2006 3:05 AM To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails-spinoffs] Set Speed of Combinational Effects Use the duration option for this: Effect.SlideUp(''blah'',{duration:2.5}); Will make the effect have a duration of 2.5 seconds. -Thomas Am 09.04.2006 um 03:35 schrieb Daniel Elmore:> How can I slow/speed up the combo effects? > > Thanks > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Could someone please tell me why this wouldn''t be working??? new Effect.Squish(''APhoto'', {duration:3.0} ); -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Thomas Fuchs Sent: Sunday, April 09, 2006 3:05 AM To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails-spinoffs] Set Speed of Combinational Effects Use the duration option for this: Effect.SlideUp(''blah'',{duration:2.5}); Will make the effect have a duration of 2.5 seconds. -Thomas Am 09.04.2006 um 03:35 schrieb Daniel Elmore:> How can I slow/speed up the combo effects? > > Thanks > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
On 4/10/06, Daniel Elmore <danielelmore-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Could someone please tell me why this wouldn''t be working??? > > new Effect.Squish(''APhoto'', {duration:3.0} ); > >Because your extra parameter are not taken into account. If you look at the effect.js code, you will see that Effect.Squish does not extend the parameters like it is done with Effect.SlideUp for example. Thinks you can do : 1. do your own version of Effect.Squish 2. wait for a fix For the first solution, I suggest : -------------------------------------- Effect.Squish = function(element) { return new Effect.Scale(element, window.opera ? 1 : 0, Object.extend({ restoreAfterFinish: true, beforeSetup: function(effect) { with(Element) { makeClipping(effect.element); }}, afterFinishInternal: function(effect) { with(Element) { hide(effect.element); undoClipping(effect.element); }} }, arguments[1] || {}) ); } -------------------------------------- Hope this helps, Nicolas