Browse Source

Made animations faster

pull/324/head
Ionite 1 year ago
parent
commit
fb31f25f1f
No known key found for this signature in database
  1. 8
      StabilityMatrix.Avalonia/Animations/BetterSlideNavigationTransition.cs

8
StabilityMatrix.Avalonia/Animations/BetterSlideNavigationTransition.cs

@ -112,18 +112,18 @@ public class BetterSlideNavigationTransition : BaseTransitionInfo
public static BetterSlideNavigationTransition PageSlideFromLeft => public static BetterSlideNavigationTransition PageSlideFromLeft =>
new() new()
{ {
Duration = TimeSpan.FromMilliseconds(400), Duration = TimeSpan.FromMilliseconds(300),
Effect = SlideNavigationTransitionEffect.FromLeft, Effect = SlideNavigationTransitionEffect.FromLeft,
FromHorizontalOffset = 150, FromHorizontalOffset = 150,
Easing = new SplineEasing(0.7, 0.4, 0.1, 0.2) Easing = new SplineEasing(0.6, 0.4, 0.1, 0.1)
}; };
public static BetterSlideNavigationTransition PageSlideFromRight => public static BetterSlideNavigationTransition PageSlideFromRight =>
new() new()
{ {
Duration = TimeSpan.FromMilliseconds(400), Duration = TimeSpan.FromMilliseconds(300),
Effect = SlideNavigationTransitionEffect.FromRight, Effect = SlideNavigationTransitionEffect.FromRight,
FromHorizontalOffset = 150, FromHorizontalOffset = 150,
Easing = new SplineEasing(0.7, 0.4, 0.1, 0.2) Easing = new SplineEasing(0.6, 0.4, 0.1, 0.1)
}; };
} }

Loading…
Cancel
Save