Very nice!
I think the "bouncing" is on purpose and is probably using easing or
something similar to achieve the effect.
As for !important, this allows the specific css property value to take
precedence over the same property that might be overriding it. For
example, say I have this define in my external stylesheet.
p {font-weight: bold;}
but then in the html, I have this:
<p style="font-weight:normal">Hello</p>
The obvious outcome is that the text in the p tag will be normal weight
since the style at the tag level takes precedence over the style defined
in the stylesheet.
However, if my style sheet looked like this:
p {font-weight: bold !important;}
The text in the p tag would be bold as the !important property in the
style sheet trumps the one defined at the tag level.
-scott
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED]
On
> Behalf Of Stephan Beal
> Sent: Tuesday, August 14, 2007 11:44 AM
> To: jQuery (English)
> Subject: [jQuery] Re: fancy menu - tell me what you guys think
>
>
> On Aug 14, 5:31 pm, "Ganeshji Marwaha" <[EMAIL PROTECTED]> wrote:
> > I have ported this fancy menu over from mootools to jquery. You can
take
> a
> > look at ithttp://www.gmarwaha.com/jquery/jfancymenu/test/test.html
>
> Slick, Ganishji :). My first thought is "lava lamp", so maybe "lava
> lamp menu" would be a suitable plugin name?
>
> Is it intentional that the "bubble" slides past its target, and then
> back (a "single bounce" effect)? That's a bit disconcerting - when it
> happens i think, "oh, no, it's moving to the wrong menu item." Have
> you tried it without the bounce?
>
> And a CSS question for you:
>
> i notice several commented-out blocks with "!important" in them. What
> does that mean in CSS?