I have in mind the creation of a page to turn a wheel of fortune … and of course i need a button to stop the wheel when i want it … Today my stop is damn sharp (stop timeline) and it “brakes the charm” of seeing the speed of the wheel decreasing slowly and finally stop…
There are threads that suggest you duplicate the timeline and run it at a different time scale.
This works to a small extent but it has problems.
My way and a bit simpler is:
Using a bit of Javascript.
We get the current rotation of the elements with the hypeDocument.getElementProperty() API
We then + or - it respectively and use the hypeDocument.setElementProperty() API to rotate the elements. We set a duration to the time it takes to go from where it is to where we want.
thank you mark i have seen the result, its a good way to slow down and stop, but can we do something for the brutal change of speed in the arrow position it may seems not so natural if you understand what i mean …