Hello all,

I have made the following code fiddle
The cript is made in raphael and works fine. What I try to achieve is, when changing the browser sieze (set in the CSS) one gear (tandwiel) rotates opposite direction.

That's also working, but when changing the browser sieze, the gear goes rotating very fast and after a while slows down and be normal. How longer you wait to change browser, the longer it rotates fast.
I thought to change angle += 2; into angle -=2 to rotate backwards, but that won't work. I have now set { "transform": "R" + angle } or - angle to rotate backwards, but with the above problems.

I don't have a solution to solve this problem. Anybody an idea how to make this work?

Thanks in advance!!