Skip to content

Fx {link: 'merge'} option #2385

@ghost

Description

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions