I’m trying to get the current position (between 0 and 360°) of .me during this animation :
http://jsfiddle.net/WcyyF/117/
So the hover out event doesn’t start the animation from 0 but continues it from x.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Another option with slightly less complex math is to track when the animation starts, and when it is interrupted. Since it runs at a constant speed you can use the elapsed time to work out how many degrees each element should have traveled, and update the starting positions accordingly. Roughly along the lines of:
Here is an example: http://jsfiddle.net/WcyyF/120/