Usage

RouteTransition(
    context: context, // BuildContext
    child: Page2(), // Page Widget
    animation: RouteTransitionAnimation.fadeIn, // Animation type
    duration: const Duration(milliseconds: 100), // Duration
    type: RouteTransitionType.replaceAll, // Transition type
    curve: Curves.elasticIn, // Curve
    from: 0.5, // Animation begin
);