Use custom optionalTimingFunction?


(Quint Rahaman) #1

I am using the setElementProperty where I am trying to use a custom optionalTimingFunctionName that I created by adjusting the Bounce property in the main UI. My custom timing function does not work when using setElementProperty.

hypeDocument.setElementProperty(element, propertyName, value, optionalDuration, optionalTimingFunctionName)

In the documentation, only four timing functions are listed: ‘easeinout’, ‘easein’, ‘easeout’, and ‘linear’. Bounce, Elastic, etc are missing. Does this mean that only the four listed functions are valid? If not, could someone point me in the right direction? Thanks!


(Hans-Gerd Claßen) #2

yes, to involve your custom timing you have to rely on starting / continuing timelines …