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

Animation sequence support #36

Closed
jheer opened this issue Dec 16, 2010 · 1 comment
Closed

Animation sequence support #36

jheer opened this issue Dec 16, 2010 · 1 comment

Comments

@jheer
Copy link
Member

jheer commented Dec 16, 2010

Add abstraction to simplify staged animations? The abstraction would take a set of transitions (wrapped in function instances) and then oversee their sequential execution. It should enable easy parameterization of stage durations, be cancelable, etc...

Two potential cases:

  1. Independent transitions: no element-level chaining. Specify function list and list of durations (or offsets) and run each stage accordingly.
  2. Dependent transitions: transitions are chained per-element (e.g., .each("end", next()), allowing staggering to propagate. The transition wrapper function might take a "next" parameter in addition to a duration to avoid hard-wiring the next transition.
@mbostock
Copy link
Member

I think I'm happy with the level of support we have now, which includes transition.transition() and transition.each("end", callback). We might consider adding a transition.transition("end"), leaving the default as transition.transition("start").

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

No branches or pull requests

2 participants