# Reversing an easing function

**URL:** <https://forum.kirupa.com/t/reversing-an-easing-function/262689>\
**Category:** flash\
**Created:** [June 9, 2008, 6:50am UTC](https://forum.kirupa.com/t/reversing-an-easing-function/262689 "2008-06-09T06:50:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)\
**Post date:** [June 9, 2008, 6:50am UTC](https://forum.kirupa.com/t/reversing-an-easing-function/262689/1 "2008-06-09T06:50:19Z")

</div>

How do you do that? So, for instance, if the ease is Bounce.easeIn - how do you get it to play backwards - so that it bounces in reverse?

---

<div class="post-metadata">

**Author:** ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)\
**Post date:** [June 9, 2008, 7:17am UTC](https://forum.kirupa.com/t/reversing-an-easing-function/262689/2 "2008-06-09T07:17:24Z")

</div>

sorry not an option…hard to explain why.

but i actually managed to find the solution

```auto

reversedEase = function(time, a, b, duration):Number {
return b-(originalEase(duration-time, a, b, duration))+a;
}

```
