Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stagger on Interpolation #49

Closed
nunospot opened this issue May 9, 2018 · 3 comments
Closed

Stagger on Interpolation #49

nunospot opened this issue May 9, 2018 · 3 comments
Labels

Comments

@nunospot
Copy link

nunospot commented May 9, 2018

Hello,

I'm using just animate combined with polymorph to animate a svg object. The animation looks good, but it seems that the stagger property is not being set, the animation runs without stoping between the path sequences.

  var shape = just.animate({
    targets: '#shape14_target',
    duration: 40000,
    stagger: 2500,
    props: {
      d: {
        interpolate: svgMorph,
        easing: 'easeInOut',
        value: [
              '#shape14_state1 path',
              '#shape14_state2 path',
              '#shape14_state3 path',
              '#shape14_state4 path',
              '#shape14_state3 path',
              '#shape14_state2 path',
              '#shape14_state1 path'
            ]
      }
    }
  })

  shape.play('Infinity');
@notoriousb1t
Copy link
Member

Staggering is intended for adding increasing delays between targets. Are you looking for something like this?

https://codepen.io/notoriousb1t/pen/zjREvR/

I threw together some icons that pause between each morph.

@nunospot
Copy link
Author

Yes! That's exactly what I want. Thank you

@notoriousb1t
Copy link
Member

No problem at all 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants