For those who never heard of Easing-Functions, they are used in all kind of
animation-scenarios - these days most often for Browser-(js)Widgets and -Effects.
Here's a link which describes them (with a nice Overview-Chart, which animates its Images on MouseOver):
http://easings.net/en
The underlying math is not that difficult - and I've encapsulated the most interesting Easing-Methods in a little Class.
This Class now also contains an 'Animate'-Method, which you can hand a Control,
a Property-Name, and PropStart - PropEnd-Values, you want to animate (over a given Duration).
For that 'Animate'-Method the little cEasing-Class now makes use of an internal cTimer-Class
(for which I've choosen the first one I was able to find in the CodeBank that supported an Event):
http://www.vbforums.com/showthread.p...ule-2008-06-15
Here is what it looks like in action (animating two Control-Properties at once - the Top- and the Alpha-Property):
![]()
Here is the Source-Code: http://vbRichClient.com/Downloads/Easing.zip
Have fun with it...
Olaf
animation-scenarios - these days most often for Browser-(js)Widgets and -Effects.
Here's a link which describes them (with a nice Overview-Chart, which animates its Images on MouseOver):
http://easings.net/en
The underlying math is not that difficult - and I've encapsulated the most interesting Easing-Methods in a little Class.
This Class now also contains an 'Animate'-Method, which you can hand a Control,
a Property-Name, and PropStart - PropEnd-Values, you want to animate (over a given Duration).
For that 'Animate'-Method the little cEasing-Class now makes use of an internal cTimer-Class
(for which I've choosen the first one I was able to find in the CodeBank that supported an Event):
http://www.vbforums.com/showthread.p...ule-2008-06-15
Here is what it looks like in action (animating two Control-Properties at once - the Top- and the Alpha-Property):

Here is the Source-Code: http://vbRichClient.com/Downloads/Easing.zip
Have fun with it...
Olaf