Skip to content

Conversation

@asklar
Copy link
Member

@asklar asklar commented Oct 22, 2019

This reimplements Decay animations and creates a base class CalculatedAnimation that factors the logic that used to be in SpringAnimation so that it can be used by DecayAnimation. The formula for decay animation was wrong; in reality a decay animation has an exponential decay. This animation cannot be expressed as a cubic bezier curve so instead we use keyframes like Spring animation does (which has a neg-exponential component too). This addresses #3481 (and #3477 )

Microsoft Reviewers: Open in CodeFlow

@asklar asklar requested a review from a team as a code owner October 22, 2019 01:50
@ghost ghost added the vnext label Oct 22, 2019
@asklar asklar requested a review from StephenLPeters October 22, 2019 06:31
Copy link
Contributor

@StephenLPeters StephenLPeters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@asklar asklar merged commit 322b86e into microsoft:master Oct 22, 2019
@asklar asklar deleted the calculatedanimation branch October 22, 2019 19:26
rozele added a commit to rozele/react-native-windows that referenced this pull request Dec 8, 2021
It looks like we used to previously pull the start value on the fly and
then later changed CalculatedAnimatedDriver to store the starting value
in `m_startValue` and migrated to using that in DecayAnimationDriver in microsoft#3482.
NickGerleman added a commit that referenced this pull request Dec 9, 2021
* Cleans up unused code from DecayAnimationDriver

It looks like we used to previously pull the start value on the fly and
then later changed CalculatedAnimatedDriver to store the starting value
in `m_startValue` and migrated to using that in DecayAnimationDriver in #3482.

* Change files

Co-authored-by: Nick Gerleman <ngerlem@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants