MonacoLabs.Presto.Avalonia 0.1.0-preview.1

This is a prerelease version of MonacoLabs.Presto.Avalonia.
dotnet add package MonacoLabs.Presto.Avalonia --version 0.1.0-preview.1
                    
NuGet\Install-Package MonacoLabs.Presto.Avalonia -Version 0.1.0-preview.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MonacoLabs.Presto.Avalonia" Version="0.1.0-preview.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MonacoLabs.Presto.Avalonia" Version="0.1.0-preview.1" />
                    
Directory.Packages.props
<PackageReference Include="MonacoLabs.Presto.Avalonia" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MonacoLabs.Presto.Avalonia --version 0.1.0-preview.1
                    
#r "nuget: MonacoLabs.Presto.Avalonia, 0.1.0-preview.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MonacoLabs.Presto.Avalonia@0.1.0-preview.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MonacoLabs.Presto.Avalonia&version=0.1.0-preview.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=MonacoLabs.Presto.Avalonia&version=0.1.0-preview.1&prerelease
                    
Install as a Cake Tool

MonacoLabs.Presto.Avalonia

The Avalonia adapter for MonacoLabs.Presto, an animation library inspired by anime.js. It makes controls first-class targets: a frame pump on TopLevel.RequestAnimationFrame, AvaloniaProperty targets written at animation priority, render-transform composition, color, brush and struct interpolation, a fluent builder with a typed method per property, XAML attached properties and markup extensions, lifecycle and state motion, draggable, scroll observer, shapes, text effects, render-thread scenes and ready-made controls such as Sheet, Modal and ToastHost.

Install

dotnet add package MonacoLabs.Presto.Avalonia

It is built against Avalonia 12.1.4 and targets net10.0. The core package comes with it.

Quick start

Install the bridge at startup (optional: everything in the bridge initializes it on first use):

public static AppBuilder BuildAvaloniaApp()
    => AppBuilder.Configure<App>()
        .UsePlatformDetect()
        .UsePresto()
        .WithInterFont();

Then animate any control:

using Avalonia.Controls;
using MonacoLabs.Presto;

Square.Animate(b => b
    .X(320)                                             // transform shorthand → RenderTransform
    .Rotate(from: -180)
    .Scale(1.4)
    .Property(Border.BorderBrushProperty, "#2563eb")    // any AvaloniaProperty
    .Background("#ff6b6b")                              // brush, from a CSS color string
    .Duration(1250)
    .Ease(Eases.InOutQuint)
    .Loop()
    .Alternate());

Values are written at BindingPriority.Animation, so Revert() puts the control's own values back exactly. From XAML, with xmlns:presto="https://github.com/stevemonaco/MonacoLabs.Presto":

<TextBlock presto:Presence.Arrive="{presto:Fade Direction=Up, Distance=48, Delay=100}" />

Trimming and NativeAOT

The package is marked IsTrimmable and IsAotCompatible and builds with no trim or AOT warnings. Avalonia controls, AvaloniaProperty keys and the library's own objects never go through reflection, so they need nothing. A plain object animated by member name, such as a dot in a CompositorScene, needs Presto.RegisterTarget<T>(); see the Trimming and NativeAOT section.

More

License

MIT; see LICENSE. Presto is inspired by, and was initially ported from, anime.js by Julian Garnier, used under the MIT license.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on MonacoLabs.Presto.Avalonia:

Package Downloads
Sanet.MakaMek.Avalonia

Avalonia UI frontend for MakaMek game

MonacoLabs.Presto.Avalonia.Lottie

Lottie playback for MonacoLabs.Presto on Avalonia, drawn through SkiaSharp.Skottie.

MonacoLabs.Presto.Avalonia.DevTools

An in-app inspector for MonacoLabs.Presto on Avalonia: freeze, step and slow the engine and watch what it runs.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-preview.1 539 10/22/2026