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

Multiple timelines #115

Open
mcmoyes opened this issue Feb 5, 2017 · 1 comment
Open

Multiple timelines #115

mcmoyes opened this issue Feb 5, 2017 · 1 comment
Labels
bug bug to fix
Projects

Comments

@mcmoyes
Copy link

mcmoyes commented Feb 5, 2017

I'm trying to create multiple timelines for different scenarios. The idea is to reuse transitions and queue them up as necessary. I've run into some unexpected behaviour though.

var timelineTrue = new mojs.Timeline();
var timelineFalse = new mojs.Timeline();

timelineTrue.add(feedbackBox).append(box, checkmark, burst).append(feedbackContent);
timelineFalse.add(feedbackBox).append(rollingBan).add(naught).append(feedbackContent);
timelineTrue.play();

If I execute this, timelineTrue plays, but the feedbackContent transition never seems to run.
If I comment out the line that appends feedbackContent to timelineFalse, it runs fine.

Interestingly:

timelineFalse.add(feedbackBox).append( feedbackContent);

breaks feedbackContent on timelineTrue , but

timelineFalse.add(feedbackBox, feedbackContent);

works.

Codepen here: http://codepen.io/mcmoyes/pen/vgjLVM
Uncomment line 100 to see the unexpected behaviour.

@legomushroom
Copy link
Member

Hey Mark!

Thanks for the issue and sorry for the inconvenience! I will try to get to bottom of this shortly.

@xavierfoucrier xavierfoucrier added the bug bug to fix label Oct 14, 2020
@xavierfoucrier xavierfoucrier added this to Bugs in mojs@next Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bug to fix
Projects
No open projects
Development

No branches or pull requests

3 participants