This is exactly what I was working on last night! I have already been able to
track mouse proximity around an element (not exactly rocket science!) but I
removed the script and HTML from the page because I didn't want some folks
getting confused.

Determining its distance from dead centre, however, proves to be a
challange. But I guess it's just a case of determining the width and height
of the element, dividing the values by two, and adding that with the value
of the mouse position x and y divided by two. The closer the mouse gets to
the centre, the close to zero it gets.

Sounds simple enough! :-P


wycats wrote:
> 
> It would be nice if surrounding icons to the one being hovered over also
> got
> magnified (by exponentially smaller amounts).
> 
> Example:
> 
> If we had an icon set of A B C D E F G
> 
> And D was being hovered over, the magnifications might be as follows:
> 
> A 100%
> B 120%
> C 144%
> D 172%
> E 144%
> F 120%
> G 100%
> 
> What Apple does to make the effect really slick is modify the
> magnfications
> depending where on the icon the mouse is. Totally centering the mouse on
> the
> icon has equal magnification to the left and right icons, while moving the
> mouse to the left on the icon increases the magnification of the left
> icons
> and decreases it on the right.
> 
> The trick would be coming up with a good way to track the mouse movements
> on
> the icon itself and an algorithm for changing the magnification, but it'd
> be
> dead sexy. I'd use it :-D
> 
> -- 
> Yehuda Katz
> Web Developer | Wycats Designs
> (ph)  718.877.1325
> 
-- 
View this message in context: 
http://www.nabble.com/Widget-Challenge-tf2341740.html#a6561134
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to