Repository navigation
Open
Labels
difficulty/challenging 🤯Categorizes an issue for which the difficulty level is reachable with internals understandinghas-repro-branchkind/bugSomething isn't workingproject/animations 🎡Categorizes an issue or PR as relevant to animations
Description
I'm submitting a...
Bug report (I searched for similar issues and did not find one)
Feature request
Current behavior
The code snippets below don't work as expected on
Android and Wasm
Expected behavior
In Case 02 - The code should animate a rectangle to grow in size and stop then repeat the behavior.
In Case 03 - The code should animate a rectangle to grow in size then shrink in size then repeat the behavior.
Minimal reproduction of the problem with instructions
Case 01 - Grow then stop
-------------------------------------------------
Expected result of running the code as presented below -
with DoubleAnimation.RepeatBehavior and DoubleAnimation.AutoReverse commented out:
Rectangle grows in size from H(0), W(0) to H(50), W(50).
This occurs over a period of five seconds.
Actual result on Android: Correct and inline with UWP
Actual result on Wasm: Correct and inline with UWP
Actual result on iOS: NA
Case 02 - Grow then stop then repeat
-------------------------------------------------
Expected result of running the code after Un-Commenting out -
<DoubleAnimation.RepeatBehavior>Forever</DoubleAnimation.RepeatBehavior>:
The rectangle should grow in size from H(0), W(0) to H(50), W(50).
This should occur over a period of five seconds.
The rectangle Should disapear and the behavior should repeat.
This should continue until the application terminates.
Actual result on Android: PROBLEM
The rectangle does grow from H(0), W(0) to H(50), W(50).
It then instantly expands to fill the screen and will continue to fill the screen. (PROBLEM)
Every 5 seconds the screen will flicker. Storyboard must still be acting.
This continues until the application terminates.
Actual result on Wasm: Correct and inline with UWP
Actual result on iOS: NA
Case 03 - Grow then shrink then repeat
-------------------------------------------------
Expected result of the code after Un-Commenting out -
<DoubleAnimation.RepeatBehavior>Forever</DoubleAnimation.RepeatBehavior> and -
<DoubleAnimation.AutoReverse>True</DoubleAnimation.AutoReverse>:
The rectangle should grow in size from H(0), W(0) to H(50), W(50).
This should occur over a period of five seconds.
The animation will then reverse itself.
The rectangle should then shrink in size from H(50), W(50) to H(0), W(0).
The two step behavior should repeat.
This should continues until the application terminates.
Actual result on Android: PROBLEM
The rectangle does grow from H(0), W(0) to H(50), W(50).
Then it instantly expands to fill the screenand will continue to fill the screen. (PROBLEM)
Every 5 seconds the screen will flicker. Storyboard must still be acting.
This continues until the application terminates.
Actual result on Wasm: PROBLEM
The rectangle does grow in size from 0,0 to 50,50.
This occurs over a period of five seconds.
The rectangle then disapears completly and the behavior repeats. (PROBLEM)
This continues until the application terminates.
Actual result on iOS: NA
Xaml -----
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid.Resources>
<Storyboard x:Name="GrowStoryboard">
<DoubleAnimation
Storyboard.TargetName="TheRectangle"
Storyboard.TargetProperty="Width"
EnableDependentAnimation="True"
From="0.0"
To="50.0"
Duration="0:0:5">
<!--<DoubleAnimation.RepeatBehavior>Forever</DoubleAnimation.RepeatBehavior>
<DoubleAnimation.AutoReverse>True</DoubleAnimation.AutoReverse>-->
</DoubleAnimation>
<DoubleAnimation
Storyboard.TargetName="TheRectangle"
Storyboard.TargetProperty="Height"
EnableDependentAnimation="True"
From="0.0"
To="50.0"
Duration="0:0:5">
<!--<DoubleAnimation.RepeatBehavior>Forever</DoubleAnimation.RepeatBehavior>
<DoubleAnimation.AutoReverse>True</DoubleAnimation.AutoReverse>-->
</DoubleAnimation>
</Storyboard>
</Grid.Resources>
<Rectangle
Name="TheRectangle"
Stretch="Fill"
Fill="Blue">
</Rectangle>
</Grid>
Code behind-----
GrowStoryboard.Begin();
Environment
Nuget Package:
Package Version(s):
Affected platform(s):
- [ ] iOS
- [x ] Android
- [x ] WebAssembly
- [ ] Windows
- [ ] Build tasks
Visual Studio
- [x ] 2017 (version: )
- [x ] 2017 Preview (version: )
- [ ] for Mac (version: )
Metadata
Metadata
Assignees
Labels
difficulty/challenging 🤯Categorizes an issue for which the difficulty level is reachable with internals understandinghas-repro-branchkind/bugSomething isn't workingproject/animations 🎡Categorizes an issue or PR as relevant to animations
Activity
jeromelaban commentedon Sep 11, 2018
Thanks for the detailed report ! We still have work to do to bring animations to the next level, such as supporting AutoReverse.
YGuerin commentedon Nov 19, 2019
Encouter a simular issue using a DoubleAnimation to perform a TranslateTransform on a Grid.
Working well on UWP. Doesn't work on iOS and Android. WASM is not in our scope so I can't confirm that point.
dr1rrb commentedon Jun 3, 2020
Quick status of the
DoubleAnimation:Notes:
BeginTimeon WASM, the 2 animations was not synchronized and the result was a bit strange.There are too much changes to get it fixed in the bug bash, this work has to be planned.
[-]Issues regarding Storyboard and or DoubleAnimation on the other platforms[/-][+]Issues regarding `Storyboard` and `DoubleAnimation`[/+]Xiaoy312 commentedon Dec 23, 2022
case2: [droid-only] dependent animation stops working after 1loop
debug note
case3: [uno-any] AutoReverse is just not implemented...
github-actions commentedon Sep 17, 2025
Hey there — just a heads-up that this issue has been quiet for over a year. If there’s no update or comment in the next 10 days, it’ll be closed automatically. Feel free to remove the stale label or drop a note to keep it open.
test: Reproduce DoubleAnimation AutoReverse not reversing
MartinZikmund commentedon Apr 7, 2026
Repro generator
Runtime test(s) added in branch
dev/mazi/repro/182:src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Media_Animation/Given_DoubleAnimation.cs→When_DoubleAnimation_AutoReverse_Completes_At_FromValuesrc/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Media_Animation/Given_DoubleAnimation.cs→When_DoubleAnimation_RepeatForever_AutoReverse_StaysInBoundsThe first test (
When_DoubleAnimation_AutoReverse_Completes_At_FromValue) fails as expected on Skia Desktop: after aDoubleAnimationwithAutoReverse=Truecompletes its full forward+reverse cycle,Widthremains at theTovalue (50) instead of returning to theFromvalue (10). This confirmsAutoReverseis broken.The second test (
When_DoubleAnimation_RepeatForever_AutoReverse_StaysInBounds) passes on Skia Desktop — the screen-filling behavior (Android) and element disappearing (WASM) may be platform-specific aspects of the same underlying bug.Storyboardanimations enhancements #23455