# Rotation speed on mouse position

**URL:** <https://forum.kirupa.com/t/rotation-speed-on-mouse-position/297322>\
**Category:** Uncategorized\
**Created:** [September 30, 2009, 8:15am UTC](https://forum.kirupa.com/t/rotation-speed-on-mouse-position/297322 "2009-09-30T08:15:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hitandhope](https://avatars.discourse-cdn.com/v4/letter/h/e495f1/32.png) [@hitandhope](https://forum.kirupa.com/u/hitandhope)\
**Post date:** [September 30, 2009, 8:15am UTC](https://forum.kirupa.com/t/rotation-speed-on-mouse-position/297322/1 "2009-09-30T08:15:11Z")

</div>

[COLOR=#000000][FONT=Times New Roman][FONT=verdana]Hi everyone

I have a circle wheel i want to rotate and the speed should be based on the mouse position. I also need to have easing in and out.

When the user hovers over the bottom of the circle it will begin to rotate one way and then th top of the circle would make it rotate the other way. The further to the top or bottom they are the quick it spins. It ideally needs to ease in and out when it starts and stops when the user moves the mouse away.

The circle will be the complete movie so 50% top and bottom each for each direction.

Any ideas im stuck?

thanks in advance  
[/FONT][/FONT][/COLOR]
