#22 new
Filippo Buratti

S2.FX.Parallel and play()

Reported by Filippo Buratti | October 5th, 2010 @ 01:27 AM

I have problems with FX.Parallel and the play() method, this code seems correct but does not work:

var test = new S2.FX.Parallel([
new S2.FX.Morph('element1', { position: 'parallel', style: 'blablablba' }),
new S2.FX.Morph('element2', { position: 'parallel', style: 'blablablba' }),
],{ duration: 1 }
);
test.play();
Another method that works but in my opinion so used is useless(right?):
new S2.FX.Parallel([
new S2.FX.Morph('element1', { position: 'parallel', style: 'blablablba' }).play(),
new S2.FX.Morph('element2', { position: 'parallel', style: 'blablablba' }).play(),
],{ duration: 1 }
);
Suggestions?

Comments and changes to this ticket

  • Wisnu Tri

    Wisnu Tri January 10th, 2011 @ 09:22 AM

    I'm also experiencing with this problem after switching from alpha to beta version,
    the play() method just won't do the animation.

    Instead using:

       new S2.FX.Parallel(element[, options])
    

    try this one:

       Element.morph(style[, options])
    

    and the parallel method would be like this:

       new S2.FX.Parallel([
          $('element_id_1').morph('width:120px; height:340px;', {
             delay: 0, duration: 1, position: 'parallel', transition: 'easeInOutCubic'
          })
          ,$('element_id_2').morph('opacity:1', {
             delay: .5, duration: .5, position: 'parallel'
          })
       ], {
          duration: 1.5
       }).play();
    

    However the parallel options seems doesn't have effect for me.

  • Wisnu Tri

    Wisnu Tri January 10th, 2011 @ 09:34 AM

    Instead using:
    

    new S2.FX.Parallel(element[, options])

    Sorry I mistyped, I mean this one:

       new S2.FX.Morph(element[, options])
    
  • rafalwrzeszcz

    rafalwrzeszcz April 16th, 2011 @ 03:04 PM

    Not sure, if this is the case, but there is a problem with S2.FX.Parallel, that it doesn't notify aggregated effects about status changes. I commited fix for that to git and created a pull request on github, you can try it out:

    https://github.com/madrobby/scripty2/pull/27

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

http://github.com/madrobby/scripty2

People watching this ticket

Pages