Skip to main content

style/values/animated/
effects.rs

1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5//! Animated types for CSS values related to effects.
6
7use crate::values::animated::color::Color;
8use crate::values::computed::length::Length;
9use crate::values::computed::url::ComputedUrl;
10use crate::values::computed::{Angle, NonNegativeLength, Number};
11use crate::values::generics::effects::Filter as GenericFilter;
12use crate::values::generics::effects::SimpleShadow as GenericSimpleShadow;
13
14/// An animated value for the `drop-shadow()` filter.
15pub type AnimatedSimpleShadow = GenericSimpleShadow<Color, Length, NonNegativeLength>;
16
17/// An animated value for a single `filter`.
18pub type AnimatedFilter = GenericFilter<Angle, Number, Length, AnimatedSimpleShadow, ComputedUrl>;