2 ms·
Reminds me a while back I was experimenting with a UI fading trick I called "proximity". UI elements would be faded out proportional to how far away the mouse p
by snorkel 17y ago
Reminds me a while back I was experimenting with a UI fading trick I called "proximity". UI elements would be faded out proportional to how far away the mouse pointer is. In my own jQuery-like API it looks like this:
// Ramp up element opacity as mouse gets closer
jf('#foodiv').resizable().proximity( {
mousenear : function(el,distance){
var _opacity = distance/600;
jfutil.setElementOpacity( el, _opacity );
}
});
I'm guessing someone has already made a jQuery plugin to do something similar.