// ----------------------------------------------------------------------- // // Copyright 2014 MIT Licence. See licence.md for more information. // // ----------------------------------------------------------------------- namespace Perspex.Animation { using System; public static class AnimationExtensions { public static PropertyTransition Transition(this PerspexProperty property, int milliseconds) { return Transition(property, TimeSpan.FromMilliseconds(milliseconds)); } public static PropertyTransition Transition(this PerspexProperty property, TimeSpan duration) { return new PropertyTransition { Property = property, Duration = duration, Easing = LinearEasing.For(), }; } } }