microsoft / WindowsCompositionSamples

The Windows Composition Samples have moved here: https://github.com/microsoft/WindowsAppSDK-Samples/tree/main/Samples/SceneGraph
https://github.com/microsoft/WindowsAppSDK-Samples/tree/main/Samples/SceneGraph
MIT License
1.13k stars 287 forks source link

Fixed topBorderExitAnimation #317

Closed Heidelberger closed 5 years ago

Heidelberger commented 5 years ago

topBorderExitAnimation was set to -30. However, that is the setting for mainContentExitAnimition.

topBorderOffsetAnimation is set to -450.0f on the show animation (keyframe 0), line 40. To reverse that animation, -450.0f should be used on the exit animation (keyframe 1), line 84.

The updated setting provides a smoother and more complete top border exit animation.

Pull Request Type

[ ] Bugfix <!—Please add link to related Issue below -->
[ ] New Sample
[ ] Other - Please describe:

Issue

# ## Proposed Changes - - ## Screenshot/GIF (if applicable):