adospace / reactorui-maui

MauiReactor is a MVU UI framework built on top of .NET MAUI
MIT License
568 stars 47 forks source link

Basic animation #127

Closed MattePozzy closed 1 year ago

MattePozzy commented 1 year ago

Hi, I need to animate a grid components.

With MAUI I can do in this way:

MauiControls.Grid g = new();
await g.FadeTo(100, 100, Easing.Linear);

but the MauiReactor grid doens't have a metho FadeTo or other basic animation.

How can I implement these basic animation? Or they can be add directly to MauiReactor?

Thank you.

Code-DJ commented 1 year ago

@Raystorm7 You can use Opacity:

new Grid() // MauiReactor
    .Opacity(State.YourVariable ? 1 : 0)
    .WithAnimation(easing: Easing.Linear, duration: YourSpeed)
adospace commented 1 year ago

Please take a look at the documentation: https://adospace.gitbook.io/mauireactor/components/animation