[Proto-Scripty] Re: Reverse sinusodal transition

2009-02-18 Thread Jim Higson

On Wednesday 18 February 2009 16:18:37 Jim Higson wrote:
> On Wednesday 18 February 2009 15:53:08 Brendan O Connor wrote:
> > run the the same function again using -xCo
> >
> > I use the following
> >
> > moveRight : function(mvePan,xCo){
> >
> >
> > menuFrag.scrollCnt = menuFrag.scrollCnt + 1;
> > new Effect.Move(mvePan, {duration: .5,
> > x: xCo, y: 0, mode: 'relative',
> > transition: Effect.Transitions.sinoidal
> > },{queue:'front'});
> > },
> >
> > moveLeft : function(mvePan,xCo){
> > xCo = xCo*-1;
> > menuFrag.scrollCnt = menuFrag.scrollCnt - 1;
> > new Effect.Move(mvePan, {duration: .5,
> > x: xCo, y: 0, mode: 'relative',
> > transition: Effect.Transitions.sinoidal
> > },{afterFinish:myCallBack});
> >  }
> > },
>
> That's pretty much what I'm doing now, but for big parallel effects with
> lots of different morphs it would be neater to be able to do something like
> this:
>
> {
> transition: forwards? Effect.Transitions.sunoidal :
>   Effect.Transitions.reverse(sunoidal)
> }

Actually, that wouldn't work at all :-)

Something more like this:

{
transition: forwards? Effect.Transitions.sunoidal :
  Effect.Transitions.sunoidal.backwards()
}

-- 
Jim
my wiki ajaxification thing: http://wikizzle.org
my blog: http://jimhigson.blogspot.com/

--~--~-~--~~~---~--~~
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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Reverse sinusodal transition

2009-02-18 Thread Brendan O Connor
valid point..my solution is for slide show so its very simple

2009/2/18 Jim Higson 

>
> On Wednesday 18 February 2009 15:53:08 Brendan O Connor wrote:
>
> > run the the same function again using -xCo
> >
> > I use the following
> >
> > moveRight : function(mvePan,xCo){
> >
> >
> > menuFrag.scrollCnt = menuFrag.scrollCnt + 1;
> > new Effect.Move(mvePan, {duration: .5,
> > x: xCo, y: 0, mode: 'relative',
> > transition: Effect.Transitions.sinoidal
> > },{queue:'front'});
> > },
> >
> > moveLeft : function(mvePan,xCo){
> > xCo = xCo*-1;
> > menuFrag.scrollCnt = menuFrag.scrollCnt - 1;
> > new Effect.Move(mvePan, {duration: .5,
> > x: xCo, y: 0, mode: 'relative',
> > transition: Effect.Transitions.sinoidal
> > },{afterFinish:myCallBack});
> >  }
> > },
> That's pretty much what I'm doing now, but for big parallel effects with
> lots
> of different morphs it would be neater to be able to do something like
> this:
>
> {
> transition: forwards? Effect.Transitions.sunoidal :
>  Effect.Transitions.reverse(sunoidal)
> }
>
> than have to worry about negating all the different morph parameters.
>
> Maybe I should just have a go at hacking a reverse function into
> Effect.Transitions.
>
> --
>  Jim
> my wiki ajaxification thing: http://wikizzle.org
> my blog: http://jimhigson.blogspot.com/
>
> >
>

--~--~-~--~~~---~--~~
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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Reverse sinusodal transition

2009-02-18 Thread Jim Higson

On Wednesday 18 February 2009 15:53:08 Brendan O Connor wrote:

> run the the same function again using -xCo
>
> I use the following
>
> moveRight : function(mvePan,xCo){
>
>
> menuFrag.scrollCnt = menuFrag.scrollCnt + 1;
> new Effect.Move(mvePan, {duration: .5,
> x: xCo, y: 0, mode: 'relative',
> transition: Effect.Transitions.sinoidal
> },{queue:'front'});
> },
>
> moveLeft : function(mvePan,xCo){
> xCo = xCo*-1;
> menuFrag.scrollCnt = menuFrag.scrollCnt - 1;
> new Effect.Move(mvePan, {duration: .5,
> x: xCo, y: 0, mode: 'relative',
> transition: Effect.Transitions.sinoidal
> },{afterFinish:myCallBack});
>  }
> },
That's pretty much what I'm doing now, but for big parallel effects with lots 
of different morphs it would be neater to be able to do something like this:

{
transition: forwards? Effect.Transitions.sunoidal :
  Effect.Transitions.reverse(sunoidal)
}

than have to worry about negating all the different morph parameters.

Maybe I should just have a go at hacking a reverse function into 
Effect.Transitions.

-- 
Jim
my wiki ajaxification thing: http://wikizzle.org
my blog: http://jimhigson.blogspot.com/

--~--~-~--~~~---~--~~
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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Reverse sinusodal transition

2009-02-18 Thread Brendan O Connor
the value that you use for xCo

run the the same function again using -xCo

I use the following

moveRight : function(mvePan,xCo){


menuFrag.scrollCnt = menuFrag.scrollCnt + 1;
new Effect.Move(mvePan, {duration: .5,
x: xCo, y: 0, mode: 'relative',
transition: Effect.Transitions.sinoidal
},{queue:'front'});
},

moveLeft : function(mvePan,xCo){
xCo = xCo*-1;
menuFrag.scrollCnt = menuFrag.scrollCnt - 1;
new Effect.Move(mvePan, {duration: .5,
x: xCo, y: 0, mode: 'relative',
transition: Effect.Transitions.sinoidal
},{afterFinish:myCallBack});
 }
},

2009/2/18 Jim Higson 

>
> Hi,
>
> There are Sinusoidal transitions and Reverse (linear) transitions - is
> there a
> way to get a reverse Sinusoidal?
>
> Thanks,
> Jim
>
> --
> Jim
> my wiki ajaxification thing: http://wikizzle.org
> my blog: http://jimhigson.blogspot.com/
>
> >
>

--~--~-~--~~~---~--~~
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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---