CssAnimationDurationProperty
More information available at:
https://developer.mozilla.org/en-US/docs/CSS/animation-duration
Gets the durations for the animations.
using AngleSharp.Css;
using AngleSharp.Extensions;
namespace AngleSharp.Dom.Css
{
internal sealed class CssAnimationDurationProperty : CssProperty
{
private static readonly IValueConverter<Time[]> Converter = Converters.TimeConverter.FromList();
internal CssAnimationDurationProperty(CssStyleDeclaration rule)
: base(PropertyNames.AnimationDuration, rule, PropertyFlags.None)
{
}
protected override object GetDefault(IElement element)
{
return Time.Zero;
}
protected override object Compute(IElement element)
{
return Converter.Convert(base.Value);
}
protected override bool IsValid(ICssValue value)
{
return Converter.Validate(value);
}
}
}