Adjust pulsating animation ranges (#16179)

Just a fine-grain refinement to the pulsating animation range.

Release Notes:

- N/A
This commit is contained in:
Danilo Leal 2024-08-13 17:31:10 -03:00 committed by GitHub
parent 170ad46f5e
commit 2f5031bd28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -1465,7 +1465,7 @@ impl WorkflowStepStatus {
("resolving-suggestion-animation", id), ("resolving-suggestion-animation", id),
Animation::new(Duration::from_secs(2)) Animation::new(Duration::from_secs(2))
.repeat() .repeat()
.with_easing(pulsating_between(0.2, 1.0)), .with_easing(pulsating_between(0.4, 0.8)),
|label, delta| label.alpha(delta), |label, delta| label.alpha(delta),
) )
.into_any_element(), .into_any_element(),
@ -1552,7 +1552,7 @@ impl WorkflowStepStatus {
("applying-step-transformation-label", id), ("applying-step-transformation-label", id),
Animation::new(Duration::from_secs(2)) Animation::new(Duration::from_secs(2))
.repeat() .repeat()
.with_easing(pulsating_between(0.2, 1.0)), .with_easing(pulsating_between(0.4, 0.8)),
|label, delta| label.alpha(delta), |label, delta| label.alpha(delta),
), ),
) )
@ -3005,7 +3005,7 @@ impl ContextEditor {
"pulsating-label", "pulsating-label",
Animation::new(Duration::from_secs(2)) Animation::new(Duration::from_secs(2))
.repeat() .repeat()
.with_easing(pulsating_between(0.2, 1.0)), .with_easing(pulsating_between(0.4, 0.8)),
|label, delta| label.alpha(delta), |label, delta| label.alpha(delta),
) )
.into_any_element() .into_any_element()

View file

@ -30,7 +30,7 @@ impl Render for LabelStory {
"pulsating-label", "pulsating-label",
Animation::new(Duration::from_secs(2)) Animation::new(Duration::from_secs(2))
.repeat() .repeat()
.with_easing(pulsating_between(0.2, 1.0)), .with_easing(pulsating_between(0.4, 0.8)),
|label, delta| label.alpha(delta), |label, delta| label.alpha(delta),
), ),
) )