Skip to content
Discussion options

You must be logged in to vote

Hey!
I know that this discussion is quite old but maybe this comment will help someone.

Solution 1

You can use the API that we use internally to create layout animations in the following way:

class MyLayoutAnimation
  extends ComplexAnimationBuilder
  implements IEntryExitAnimationBuilder
{
  static presetName = 'MyLayoutAnimation';

  static createInstance<T extends typeof BaseAnimationBuilder>(
    this: T
  ): InstanceType<T> {
    return new MyLayoutAnimation() as InstanceType<T>;
  }

  build = (): EntryExitAnimationFunction => {
    const delayFunction = this.getDelayFunction();
    const callback = this.callbackV;
    const initialValues = this.initialValues;
    const delay = this.g…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by MatiPl01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants