First off, I''m a bit new to the prototype/scriptaculous stuff. I''ve been meddling trying to create something like a Slot Machine Wheel Effect by scaling down the top item in the list, moving it to the bottom and then scaling it up. http://examples.jakewendt.com/SlotWheelEffect.html Problems: 1. The first "spin" of the wheel is very jittery. 2. There''s a bit of a pause between each list item. Any ideas as to how to iron out these bugs and perhaps add some improvements? TIA --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
It seems that the "jitteriness" is at least partially due to being vertically centered. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Use this:
new Effect.Scale(myTop, 0, {
scaleX: false,
scaleFrom: 100,
transition: Effect.Transitions.linear,
afterFinish: function ( effect ) {
effect.element.hide().setStyle({ height: myHeight, fontSize:
myFontSize });
effect.element.parentNode.appendChild(effect.element.remove());
new Effect.Scale(myTop,100,{
scaleX: false,
scaleFrom: 0,
afterUpdate: function(effect) {
effect.element.show();
}
});
startLoop();
}
});
Note that this does work in Safari, but not FF (but it''s probably
easy to fix).
Best,
Thomas
Am 17.07.2007 um 11:28 schrieb Jake:
>
> It seems that the "jitteriness" is at least partially due to
being
> vertically centered.
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---