pub struct KeyframeStep {
pub properties: HashMap<String, String>,
pub transform: Option<TransformStep>,
pub opacity: Option<f32>,
pub color: Option<String>,
}Expand description
Keyframe step with properties
Fields§
§properties: HashMap<String, String>CSS properties for this keyframe
transform: Option<TransformStep>Transform properties
opacity: Option<f32>Opacity value
color: Option<String>Color value
Implementations§
Source§impl KeyframeStep
impl KeyframeStep
Sourcepub fn add_property(&mut self, property: String, value: String)
pub fn add_property(&mut self, property: String, value: String)
Add a CSS property
Sourcepub fn set_transform(&mut self, transform: TransformStep)
pub fn set_transform(&mut self, transform: TransformStep)
Set transform
Sourcepub fn set_opacity(&mut self, opacity: f32)
pub fn set_opacity(&mut self, opacity: f32)
Set opacity
Trait Implementations§
Source§impl Clone for KeyframeStep
impl Clone for KeyframeStep
Source§fn clone(&self) -> KeyframeStep
fn clone(&self) -> KeyframeStep
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeyframeStep
impl Debug for KeyframeStep
Source§impl<'de> Deserialize<'de> for KeyframeStep
impl<'de> Deserialize<'de> for KeyframeStep
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for KeyframeStep
impl PartialEq for KeyframeStep
Source§impl Serialize for KeyframeStep
impl Serialize for KeyframeStep
impl StructuralPartialEq for KeyframeStep
Auto Trait Implementations§
impl Freeze for KeyframeStep
impl RefUnwindSafe for KeyframeStep
impl Send for KeyframeStep
impl Sync for KeyframeStep
impl Unpin for KeyframeStep
impl UnwindSafe for KeyframeStep
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more