pub type AnimatedFilter = Filter<Angle, Number, Length, AnimatedSimpleShadow, Impossible>;Expand description
An animated value for a single filter.
Aliased Type§
#[repr(C, u8)]pub enum AnimatedFilter {
Blur(NonNegative<CSSPixelLength>),
Brightness(NonNegative<f32>),
Contrast(NonNegative<f32>),
Grayscale(ZeroToOne<f32>),
HueRotate(Angle),
Invert(ZeroToOne<f32>),
Opacity(ZeroToOne<f32>),
Saturate(NonNegative<f32>),
Sepia(ZeroToOne<f32>),
DropShadow(GenericSimpleShadow<GenericColor<Percentage>, CSSPixelLength, NonNegative<CSSPixelLength>>),
Url(Impossible),
}Variants§
Blur(NonNegative<CSSPixelLength>)
blur(<length>)
Brightness(NonNegative<f32>)
brightness(<factor>)
Contrast(NonNegative<f32>)
contrast(<factor>)
Grayscale(ZeroToOne<f32>)
grayscale(<factor>)
HueRotate(Angle)
hue-rotate(<angle>)
Invert(ZeroToOne<f32>)
invert(<factor>)
Opacity(ZeroToOne<f32>)
opacity(<factor>)
Saturate(NonNegative<f32>)
saturate(<factor>)
Sepia(ZeroToOne<f32>)
sepia(<factor>)
DropShadow(GenericSimpleShadow<GenericColor<Percentage>, CSSPixelLength, NonNegative<CSSPixelLength>>)
drop-shadow(...)
Url(Impossible)
<url>
Trait Implementations§
Source§impl Animate for AnimatedFilter
impl Animate for AnimatedFilter
Source§impl ToAnimatedZero for AnimatedFilter
impl ToAnimatedZero for AnimatedFilter
Source§fn to_animated_zero(&self) -> Result<Self, ()>
fn to_animated_zero(&self) -> Result<Self, ()>
Returns a value that, when added with an underlying value, will produce the underlying
value. This is used for SMIL animation’s “by-animation” where SMIL first interpolates from
the zero value to the ‘by’ value, and then adds the result to the underlying value. Read more