pub enum TransitionProperty {
Show 40 variants
Opacity,
Color,
BackgroundColor,
BorderColor,
TextDecorationColor,
TextShadow,
Fill,
Stroke,
Width,
Height,
MinWidth,
MinHeight,
MaxWidth,
MaxHeight,
PaddingTop,
PaddingRight,
PaddingBottom,
PaddingLeft,
MarginTop,
MarginRight,
MarginBottom,
MarginLeft,
BorderTopLeftRadius,
BorderTopRightRadius,
BorderBottomRightRadius,
BorderBottomLeftRadius,
BorderTopWidth,
BorderRightWidth,
BorderBottomWidth,
BorderLeftWidth,
RowGap,
ColumnGap,
FontSize,
ObjectPosition,
OverflowX,
OverflowY,
Transform,
Shading,
All,
Other(Rc<str>),
}Variants§
Opacity
Color
BackgroundColor
BorderColor
TextDecorationColor
TextShadow
Fill
Used value is the element’s color: gpui tints SVG sprites with one colour; fill: none is
a discrete endpoint.
Stroke
Width
Height
MinWidth
MinHeight
MaxWidth
MaxHeight
PaddingTop
PaddingRight
PaddingBottom
PaddingLeft
MarginTop
MarginRight
MarginBottom
MarginLeft
BorderTopLeftRadius
BorderTopRightRadius
BorderBottomRightRadius
BorderBottomLeftRadius
BorderTopWidth
BorderRightWidth
BorderBottomWidth
BorderLeftWidth
RowGap
ColumnGap
FontSize
ObjectPosition
OverflowX
Discrete: Element.animate() and @keyframes flip it halfway; a transition never animates it
(no transition-behavior: allow-discrete).
OverflowY
Transform
The whole function list travels as one value: matched lists interpolate componentwise, never through the matrix, which would shear.
Shading
Excluded from all: a custom property is not an animatable property without an @property
registration.
All
Other(Rc<str>)
Implementations§
Source§impl TransitionProperty
impl TransitionProperty
Sourcepub fn animatable() -> [TransitionProperty; 35]
pub fn animatable() -> [TransitionProperty; 35]
By value: the enum carries an Rc, so it is neither Sync nor const-promotable.
Sourcepub fn keyframed() -> impl Iterator<Item = TransitionProperty>
pub fn keyframed() -> impl Iterator<Item = TransitionProperty>
What keyframes animate: the animatable set and the discrete properties.
pub fn is_discrete(&self) -> bool
pub fn name(&self) -> &str
Trait Implementations§
Source§impl Clone for TransitionProperty
impl Clone for TransitionProperty
Source§impl Debug for TransitionProperty
impl Debug for TransitionProperty
impl Eq for TransitionProperty
Source§impl Hash for TransitionProperty
impl Hash for TransitionProperty
Source§impl PartialEq for TransitionProperty
impl PartialEq for TransitionProperty
impl StructuralPartialEq for TransitionProperty
Auto Trait Implementations§
impl !Send for TransitionProperty
impl !Sync for TransitionProperty
impl Forget for TransitionProperty
impl Freeze for TransitionProperty
impl Move for TransitionProperty
impl RefUnwindSafe for TransitionProperty
impl Unpin for TransitionProperty
impl UnsafeUnpin for TransitionProperty
impl UnwindSafe for TransitionProperty
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more