Skip to content
This repository was archived by the owner on Apr 27, 2021. It is now read-only.
This repository was archived by the owner on Apr 27, 2021. It is now read-only.

GSAP Support #13

@shshaw

Description

@shshaw

The GSAP play option is nice, but a little lacking.

It would be helpful if flip.play() would return the TweenLite/TweenMax instance it creates when using the play: 'GSAP' option. Alternatively, the tween could be created & returned through another method ( flip.tween(), flip.gsap() ? ). Either of these would allow you to queue up multiple FLIP animations on a GSAP timeline, or control them manually with GSAP's methods.

Another helpful feature would be to pass along options to the TweenLite/TweenMax setup. Perhaps as an argument in the play method.

var flip = new FLIP({
  element: target,
  duration: 2000,
  play: 'GSAP'
});
flip.first();
flip.last('end');
flip.invert();
flip.play(null, {
  easing: "Power4.easeInOut",
  onComplete: function(){ console.log('animation complete!'); }
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions