Fx {link: 'merge'} option #2385

Open
upsolution opened this Issue Jul 20, 2012 · 0 comments

Projects

None yet

2 participants

@upsolution
upsolution commented Jul 20, 2012 edited

How about adding link: 'merge' option, that merges current transition with the new one without cancelling current?

For example:

var fx = new Fx.Morph(elm, {
    link: 'merge',
    duration: 1000
});

// The first transition starts immediately
fx.morph({top: 0});
// The second starts after half a second
fx.morph.delay(500, fx, [{left: 0}]);
// and actually equals fx.morph({left:0, top: 0});

It's quite easy to implement and provides additional flexibility for effects.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/55883-fx-link-merge-option?utm_campaign=plugin&utm_content=tracker%2F22067&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F22067&utm_medium=issues&utm_source=github).
@ibolmo ibolmo removed the priority 5 label Mar 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment