# change the duration of animation and update the animation at runtime

**URL:** https://forum.lottiefiles.com/t/change-the-duration-of-animation-and-update-the-animation-at-runtime/3182
**Category:** Lottie in Mobile
**Created:** [July 22, 2022, 1:29am UTC](https://forum.lottiefiles.com/t/change-the-duration-of-animation-and-update-the-animation-at-runtime/3182 "2022-07-22T01:29:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rabindracoke](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.lottiefiles.com/rabindracoke/32/2064_2.png) [@rabindracoke](https://forum.lottiefiles.com/u/rabindracoke)
#### Post date: [July 22, 2022, 1:29am UTC](https://forum.lottiefiles.com/t/change-the-duration-of-animation-and-update-the-animation-at-runtime/3182/1 "2022-07-22T01:29:36Z")

</div>

I need a way to create a custom lottie animation, where I can change the duration of animation and update the animation at runtime. Basically, I want to build a loader using lottie to show the progress animation in case of any kind of downloading.
