# Animating a component that's bound to a timer value

**URL:** <https://forum.inductiveautomation.com/t/animating-a-component-thats-bound-to-a-timer-value/71420>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [March 22, 2023, 2:05am UTC](https://forum.inductiveautomation.com/t/animating-a-component-thats-bound-to-a-timer-value/71420 "2023-03-22T02:05:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miguel\_Villasenor\_Es](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/miguel_villasenor_es/32/60416_2.png) [@Miguel\_Villasenor\_Es](https://forum.inductiveautomation.com/u/Miguel_Villasenor_Es)\
**Post date:** [March 22, 2023, 2:05am UTC](https://forum.inductiveautomation.com/t/animating-a-component-thats-bound-to-a-timer-value/71420/1 "2023-03-22T02:05:42Z")

</div>

Hello, I have a component who's **Y:** property is tied to a Timer.Value(int). I want my component to sit at the bottom of the screen, 650px and I want the component to move up the "conveyor". I wrote some code in the Property Changed timer, I want the component to return to position Y:650px once the component's Y:value is less than 472px. Here is my code :  
cap = 472  
if event.source.value \<cap:  
event.source.value = 650

If I make the Timer.Running value ture, my component jumps to Y:150 and then slowly starts moving up... It should not jump to Y:150. If I run the program and have the Timer.Running value set to true, my component stays at Y:650px and does not move.

Nothing seems to work well... What am i doing wrong or what are some alternatives?

 ![ide](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/5/e5e11398f1611d7ec295838eadfb5f147a0c80a3.png)  
 ![property changed - Copy](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/3/636ccb850ec8834a1823789ca0d2dbac1fbadc67.png)  
 ![timer - Copy](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/e/9e6035e27333c8aeeacd6fd87e0fba651708d8f2.png)

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [March 22, 2023, 11:14am UTC](https://forum.inductiveautomation.com/t/animating-a-component-thats-bound-to-a-timer-value/71420/2 "2023-03-22T11:14:30Z")

</div>

I recommend using [system.gui.transform](https://docs.inductiveautomation.com/display/DOC81/system.gui.transform) to move your component. If you want the animation to play out over a certain amount of time, use the duration parameter.
