Add user custom easing to Optional Timing Function API


(Quint Rahaman) #1

Request: Add the user’s “custom ease” definitions to the optionalTimingFunction API.


(Jonathan Deutsch) #2

Thanks for the request!

While not impossible, right now we don’t write out all timing functions as this would take up a lot of bytes for the export. We only write them out if an animation includes it. So the main difficulty here is there’s no good way to know if the timing function is used by javascript or not, and including them all would be a bad idea. That’s why we didn’t do it originally. Of course there are some ways around this such as a user option to include them or allowing the timing function data to be passed in as a variable.