I'm trying to emulate a 3d rotation among the y-axis for some paths I have in an SVG. I've found the library SVG3D https://code.google.com/p/svg3d/ and I've given it a try.
The problem is that you can only control the ticking interval duration and the increment (in radians) of each "tick" (there's a setInterval timing function that calls the transform() function which executes the rotation).
There's a toggleRotation function, that works like a play-pause command, but it doesn't give you any control of the timing and rotation of the path.
I have the following example code for my path:
<g id="anim_container"
z:xOrigin="0"
z:yOrigin="0"
z:zRatio="1000"
z:sortAlgo="none"
z:rotationTime="60"
onload="init(this);">
<path
d="M 460.2203,600.93365 248.25964,263.59573 C 248.63437,272.77915 249.10289,281.86852 249.66521,290.86388 250.03994,298.54799 250.32105,306.70032 250.50856,315.32088 250.88328,323.75461 251.07069,331.251 251.07079,337.81007 L 251.07079,600.93365 203.28125,600.93365 203.28125,204.84271 265.68876,204.84271 479.89835,544.42955 C 479.33579,535.24653 478.77356,526.06345 478.21166,516.88029 477.83651,509.00916 477.4617,500.48202 477.0872,491.29883 476.71206,481.92845 476.52465,473.02649 476.52497,464.59291 L 476.52497,204.84271 524.87674,204.84271 524.87674,600.93365 460.2203,600.93365"
id="path_n">
<z:translation x="364.0790100097656" y="402.88818359375"/>
<z:rotation incRotY="0.5"/>
<z:translation x="-364.0790100097656" y="-402.88818359375"/>
</path>
</g>
So, how could you control the spinning and speed of the objects? Is it possible to include an easing function to control the speed of each rotation?