figma_schema/easing_type.rs
1use serde::{Deserialize, Serialize};
2
3/// Animation easing curves
4///
5/// [Figma documentation](https://www.figma.com/developers/api#easingtype-type)
6#[derive(Debug, Deserialize, Serialize)]
7#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
8#[typeshare::typeshare]
9pub enum EasingType {
10 /// Ease in with an animation curve similar to CSS ease-in
11 EaseIn,
12 /// Ease out with an animation curve similar to CSS ease-out
13 EaseOut,
14 /// Ease in and then out with an animation curve similar to CSS ease-in-out
15 EaseInAndOut,
16 /// No easing, similar to CSS linear
17 Linear,
18 EaseInBack,
19 EaseOutBack,
20 EaseInAndOutBack,
21 CustomBezier,
22 Gentle,
23 Quick,
24 Bouncy,
25 Slow,
26 CustomSpring,
27}