Motion.Avalonia
1.0.0
dotnet add package Motion.Avalonia --version 1.0.0
NuGet\Install-Package Motion.Avalonia -Version 1.0.0
<PackageReference Include="Motion.Avalonia" Version="1.0.0" />
<PackageVersion Include="Motion.Avalonia" Version="1.0.0" />
<PackageReference Include="Motion.Avalonia" />
paket add Motion.Avalonia --version 1.0.0
#r "nuget: Motion.Avalonia, 1.0.0"
#:package Motion.Avalonia@1.0.0
#addin nuget:?package=Motion.Avalonia&version=1.0.0
#tool nuget:?package=Motion.Avalonia&version=1.0.0
Motion.Avalonia
Declarative, seekable, real-layout motion for Avalonia (net8.0, net10.0, net11.0 / Avalonia 12.0.0+).
Motion.Avalonia lets stable Avalonia controls move smoothly between unrelated live layouts (StateMotion, SequenceMotion, TimelineMotion) using real Measure and Arrange passes—without bitmap snapshots or scale transforms to imitate layout.
Install
dotnet add package Motion.Avalonia
Quick Start
Declare the XML namespace in AXAML:
xmlns:motion="using:Motion.Avalonia"
Keep target controls as direct children of MotionPanel with matching x:Name values on each MotionSlot:
<motion:MotionPanel>
<motion:MotionPanel.Motion>
<motion:StateMotion
x:Name="EditorMotion"
State="Quick"
Duration="0:0:0.35"
Easing="CubicEaseInOut">
<motion:MotionState Key="Quick">
<DataTemplate>
<Grid>
<motion:MotionSlot
x:Name="Editor"
MaxWidth="600"
HorizontalAlignment="Center"/>
</Grid>
</DataTemplate>
</motion:MotionState>
<motion:MotionState Key="Advanced">
<DataTemplate>
<DockPanel HorizontalSpacing="24">
<motion:MotionSlot
x:Name="Editor"
MaxWidth="420"
DockPanel.Dock="Left"/>
<motion:MotionSlot x:Name="Preview"/>
</DockPanel>
</DataTemplate>
</motion:MotionState>
</motion:StateMotion>
</motion:MotionPanel.Motion>
<Border x:Name="Editor"/>
<Border x:Name="Preview"/>
</motion:MotionPanel>
Switch EditorMotion.State to "Advanced" to trigger a smooth transition with interruption and retargeting support.
Motion Models
StateMotion: Named state transitions with directedMotionEdgetiming/easing overrides and smooth mid-flight interruption.SequenceMotion: Scrubbable normalizedProgress(0..1/0%..100%Cuekeyframes) driven byScrollViewer,Slider, or gestures.TimelineMotion: Authored absoluteKeyTimekeyframes with a frame-alignedPlayer(Play,Pause,Loop, scrubbingTime).
Documentation & License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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. net11.0 is compatible. |
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 0 | 11/25/2026 |
**Full Changelog**: https://github.com/Sylinko/Motion.Avalonia/commits/v1.0.0