Currently animations can only trigger from a start value to and end value, and either do that animation once over the duration, or repeatedly do that animation forever. You can add 'counts' by using an array of animations, which is very clunky. If you want to do a 'bounce' style animation where we animate to some value and then back, you have to use an array and either use an opposite curve for the return, or invert the from/to values.
Instead, animations should support modes:
- once - animate along the curve once (default)
- bounce - animate along the curve and then back in reverse
And instead of the existing 'repeat' value just being true or false for 'forever', you could also specify a number in order to repeat that many times