using System; using Avalonia.Animation.Animators; using Avalonia.Media; namespace Avalonia.Animation { /// /// Transition for values, e.g. animating /// TextElement.FontVariations between weights. Axis values interpolate /// per axis when both endpoints set the same axes and switch discretely otherwise /// (CSS font-variation-settings semantics). /// public class FontVariationSettingsTransition : Transition { private static readonly FontVariationSettingsAnimator s_animator = new(); internal override IObservable DoTransition( IObservable progress, FontVariationSettings? oldValue, FontVariationSettings? newValue) { return new AnimatorTransitionObservable( s_animator, progress, Easing, oldValue, newValue); } } }