From cae456751b929bbc9d94d4b4a4a34ed94aaa3856 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 3 May 2010 17:19:17 -0600 Subject: [PATCH] Fade notifications on mouseover. Inspired by Ubuntu desktop notifications. --- horde/js/Growler.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/horde/js/Growler.js b/horde/js/Growler.js index 9e85e056d..107fba144 100644 --- a/horde/js/Growler.js +++ b/horde/js/Growler.js @@ -180,6 +180,21 @@ } this.growler.wrap(document.body); + + this.growler.observe('mouseenter', function() { + this.growler.fade({ + duration: 0.25, + queue: { limit: 2, scope: 'growler' }, + to: 0.3 + }); + }.bind(this)); + this.growler.observe('mouseleave', function() { + this.growler.appear({ + duration: 0.25, + queue: { limit: 2, scope: 'growler' }, + to: 1 + }); + }.bind(this)); }, growl: function(msg, options) -- 2.11.0