# Easing an animation running without ease

**URL:** https://forum.kirupa.com/t/easing-an-animation-running-without-ease/279164
**Category:** Uncategorized
**Created:** [January 10, 2009, 12:13pm UTC](https://forum.kirupa.com/t/easing-an-animation-running-without-ease/279164 "2009-01-10T12:13:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![marcogiannini](https://avatars.discourse-cdn.com/v4/letter/m/bbce88/32.png) [@marcogiannini](https://forum.kirupa.com/u/marcogiannini)
#### Post date: [January 10, 2009, 12:13pm UTC](https://forum.kirupa.com/t/easing-an-animation-running-without-ease/279164/1 "2009-01-10T12:13:57Z")

</div>

hi all,  
I’m not a code expert, so I guess to find here some help.  
I need some advise to build a function that slow down and stop an animation that is running cyclical (from right to left) in the back of my stage, without any other effect. The issue is that the slow-and-stop command can come at any time ('cause it will depends on user’s click on a button).  
My animation is very \_x-long: it something like a scene running in the bottom of the screen, and it must slow and stop when the command come,

I tried with tween class, with setInterval, but the only way I can try is valid for a short animation, cycling from right to left and then going back to its original \_x position. But this is unuseful for a long scene…

please help me  
thanking you in advance
