CssAnimationDirectionProperty
More information available at:
https://developer.mozilla.org/en-US/docs/CSS/animation-direction
Gets an iteration over all defined directions.
using AngleSharp.Css;
using AngleSharp.Extensions;
namespace AngleSharp.Dom.Css
{
internal sealed class CssAnimationDirectionProperty : CssProperty
{
private static readonly IValueConverter<AnimationDirection[]> Converter = Converters.AnimationDirectionConverter.FromList();
internal CssAnimationDirectionProperty(CssStyleDeclaration rule)
: base(PropertyNames.AnimationDirection, rule, PropertyFlags.None)
{
}
protected override object GetDefault(IElement element)
{
return AnimationDirection.Normal;
}
protected override object Compute(IElement element)
{
return Converter.Convert(base.Value);
}
protected override bool IsValid(ICssValue value)
{
return Converter.Validate(value);
}
}
}