I use the following formula in my application to scale an image over a
period of time.
s = ( startScale + ( elapsedTime / duration ) * ( endScale - startScale
) ) )
startScale = initial scale value
endScale = final scale value
elapsedTime = time elapse since we started
duration = scaling occurs over this period of time
The result is linear and I would prefer to have some acceleration during
the beginning and deceleration at the end so that scaling gradually
increases then decreases during the duration period. Can anyone please
suggest something better? Ideally I would be able to adjust the amount
of acceleration and deceleration values, thanks.