Skip to content

Commit

Permalink
feel better
Browse files Browse the repository at this point in the history
  • Loading branch information
kikipoulet committed Jan 2, 2025
1 parent 5eb65b4 commit d7c70fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SukiUI/Controls/SukiToast.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,14 @@ private void ToastCardClickedHandler(object o, PointerPressedEventArgs pointerPr
public void AnimateShow()
{
this.Animate(OpacityProperty, 0d, 1d, TimeSpan.FromMilliseconds(500));
this.Animate<double>(MaxHeightProperty, 0, 500, TimeSpan.FromMilliseconds(500));
this.Animate(MarginProperty, new Thickness(0, 10, 0, -10), new Thickness(), TimeSpan.FromMilliseconds(500));
}

public void AnimateDismiss()
{
this.Animate(OpacityProperty, 1d, 0d, TimeSpan.FromMilliseconds(300));
this.Animate(MarginProperty, new Thickness(), new Thickness(0, 50, 0, -50), TimeSpan.FromMilliseconds(300));
this.Animate(MarginProperty, new Thickness(), new Thickness(0, 0, 0, 10), TimeSpan.FromMilliseconds(300));
}

public ISukiToast ResetToDefault()
Expand Down

0 comments on commit d7c70fc

Please sign in to comment.