pub type AnimatedFilter = Filter<Angle, Number, Number, Length, AnimatedSimpleShadow, Impossible>;
Expand description
An animated value for a single filter
.
Aliased Type§
enum AnimatedFilter {
Blur(CSSPixelLength),
Brightness(f32),
Contrast(f32),
Grayscale(f32),
HueRotate(Angle),
Invert(f32),
Opacity(f32),
Saturate(f32),
Sepia(f32),
DropShadow(GenericSimpleShadow<GenericColor<Percentage>, CSSPixelLength, CSSPixelLength>),
Url(Impossible),
}
Variants§
Blur(CSSPixelLength)
blur(<length>)
Brightness(f32)
brightness(<factor>)
Contrast(f32)
contrast(<factor>)
Grayscale(f32)
grayscale(<factor>)
HueRotate(Angle)
hue-rotate(<angle>)
Invert(f32)
invert(<factor>)
Opacity(f32)
opacity(<factor>)
Saturate(f32)
saturate(<factor>)
Sepia(f32)
sepia(<factor>)
DropShadow(GenericSimpleShadow<GenericColor<Percentage>, CSSPixelLength, 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