Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Masum Bergmann](https://uploads.teamtreehouse.com/production/profile-photos/803862/micro_MBs.jpg)
Masum Bergmann
Courses Plus Student 4,129 PointsalphaAnimation time limit
This one's for the experts:
Is there an upper time limit for the duration of an alphaAnimation? In other words, could I have an alphaAnimation run for 2 hours?
Cheers, Masum
1 Answer
![Liam Peters](https://uploads.teamtreehouse.com/production/profile-photos/124415/micro_me_2.png)
Liam Peters
8,792 PointsHi Masmum,
Animations in android don't cause UI blocking and so the android system wouldn't kill a long running animation. I've looked into this before and I don't see why there would be an upper limit.
However from the fact that the duration is an integer (Max value of 2^31 -1) in milliseconds (1000ms = 1s), the upper limit if it isn't specifically set lower would be something along the lines of 596.5* hours.
It's probably a bit unrealistic that a device would even have a charge large enough to view this, let alone a user willing to sit through it while it plays out!
If you find any information about an enforced limit though, please do let me know!
Liam
Masum Bergmann
Courses Plus Student 4,129 PointsMasum Bergmann
Courses Plus Student 4,129 PointsThanks for that! I doubt I'll ever be needing the full 596.5 hours, but good to know I have some leeway ;-) Will let you know if I hear anything different!
Cheers, Masum