Sinusoidal refers to the acceleration curve of the effect motion. It
does not provide a cyclical movement.

To move an object away, them move it back, you need to stack two
events.

I just happen to have written an article on how to accomplish this
over at our "unoffical" Wiki:

http://proto-scripty.wikidot.com/scripty:how-to-timing-and-sequencing-animations




On Nov 10, 3:41 am, delove <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> I have about no knowledge with script.aculo, but I have successfully
> accomplished one thing; transforming this code:
>
> <style type="text/css"> a#move_demo { background:#fa0000; color:#fff;
> padding:5px; border:1px solid #000; } </style> <div class="demo">
> <a href="#" id="move_demo" onclick="new Effect.Move(this, { x: 60, y:
> -30 }); return false;">
> Click me for a demo!</a> </div>
>
> to this one:
>
> <style type="text/css"><a#move_demo </style>
> <a href="http://www.freakingidol.com/listen.html";  id="move_demo"
> onclick="new Effect.Move(this, { x: 60, y: -30 });return false;">
> <img src="Graphics/listen.jpg" border="0" width="56" height="15"></a>
>
> and it works, I am proud. Now I want to use the
> effect.transition.sinoidal, but all I have is;
>
> new Effect.Move('id_of_element', { x: 200, y: 0, mode: 'relative',
> transition: Effect.Transitions.spring });
>
> and I don't know how to make it work, I mean not at all. I would also
> like if a static image could be revealed underneath the
> transition.image that will move to its right, just for the moment that
> it is uncovered. That image may be the background image of the cell,
> and have the same size as the image on top? I don't know?
>
> If you can come up with the full code, please be specific and really
> helpful, by letting me know the parts that I will have to change.
>
> Thanks everyone!
> Hayden
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to