# Scroll animation speed not updating on screen change

**URL:** <https://forum.kustom.rocks/t/scroll-animation-speed-not-updating-on-screen-change/9596>\
**Category:** Issues\
**Tags:** functions, help, klwp\
**Created:** [December 13, 2024, 6:04pm UTC](https://forum.kustom.rocks/t/scroll-animation-speed-not-updating-on-screen-change/9596 "2024-12-13T18:04:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Account\_Mule](https://forum.kustom.rocks/user_avatar/forum.kustom.rocks/account_mule/32/242_2.png) [@Account\_Mule](https://forum.kustom.rocks/u/Account_Mule)\
**Post date:** [December 13, 2024, 6:04pm UTC](https://forum.kustom.rocks/t/scroll-animation-speed-not-updating-on-screen-change/9596/1 "2024-12-13T18:04:55Z")

</div>

I’m trying to use this formula to change the animation speed based on what screen I’m currently on:  
$if(si(screen)=1,280,160)$

The speed only updates when I either open the formula or apply the wallpaper.

I’ve also tried $tu(rnd,.016,if(si(screen)=1,280,160),if(si(screen)=1,280,160))$ to try and force the speed to update every second, but that doesn’t work either.

Both formulas work when updating text

---

<div class="post-metadata">

**Author:** ![Ace](https://forum.kustom.rocks/user_avatar/forum.kustom.rocks/ace/32/34_2.png) [@Ace](https://forum.kustom.rocks/u/Ace)\
**Post date:** [December 15, 2024, 6:33pm UTC](https://forum.kustom.rocks/t/scroll-animation-speed-not-updating-on-screen-change/9596/2 "2024-12-15T18:33:24Z")

</div>

Since this is an “If supported” function, I would first test if you actually get the value to change using a simple text element. This way, you can isolate if this is an issue with the animation or si(screen) not providing the right values.
