Modified the framework for timing of the double pendulum animation