Finally, I am back after a long time with a refreshing new jQuery plugin to make your Web Page menus look better. Its the jQuery Sliding Menu also known as the Lavalamp Menu or Fancy menu by some.
Demo: Click Here
Download: Click Here
Project Repository: Click Here
Usage:
- In the head section add the following code:
- Add the form in the body as shown below
That’s it you are done!
For advanced users:
List of options available:
| backgroundClass | Class of the moving background (Default: “Background”) |
| initialOpacity | Opacity of the moving background (Default: 1) |
| slideSpeed | Speed at which the background should slide (Default: 1, should be a fraction less than 1 which is max speed) |
| easing | Type of easying with which the background should slide (Default: “linear”, must include jQuery UI core for this to work) |
| callback | Callback of the sliding menu event (Default: “”) |
| backgroundContent | HTML for moving background (Default: ”
“) |
| activeClass | Class for the clicked link (Default: “ActiveLink”) |
| highlightOnClick | Tells whether the menu item should get highlighted on clicking it (Default: false) |
Hope you liked the plugin. Awaiting your comments
If you liked the plugin please spread it for your friends to use and please rate it at http://plugins.jquery.com/project/jquery-sliding-menu
Finally, I am back after a long time with a refreshing new jQuery plugin to make your Web Page menus look better. Its the jQuery Sliding Menu.
54 replies on “jQuery Sliding Menu (AKA Lavalamp Menu)”
[…] Follow this link: jQuery Sliding Menu (AKA Lavalamp Menu) | GeekTantra […]
Great work! Tnx Master!
Thnx for the appreciation.
The Demo https://www.geektantra.com/projects/jquery-sliding-menu/# doesn’t seem to be working.
Thanks. It was easy to understand this material. I am waiting for new information about this theme.
Social comments and analytics for this post…
This post was mentioned on Twitter by geektantra: jQuery Sliding Menu (AKA Lavalamp Menu) | GeekTantra http://tinyurl.com/y9ozwwp…
Any kind of help regarding google adsense contact anytime – [email protected]
Thanks
[…] jQuery Sliding Menu (AKA Lavalamp Menu) | GeekTantra / jquery menu navigation webdev […]
Awesome menus. They look great in Firefox. But in Internet Explorer 8 the menus don’t look nearly as good. How can I fix this problem for IE?
Thanks this is an awsome menu , i use it on so many of my clients websites now , i cant get enough !
class=”ActiveLink” doesn’t work
the initialOpacity doesnt work on IE7, Javascript error
the demo breaks too.
Hi,
I’m having troubles with IE 6&7 as everyone else getting message error “object doesn’t support this property or method”
Can you help us out?
BTW, great menu plugin!
Thanks in advance!!!
Thanks for this solution.
For those of you having a problem with this script in IE7; the root cause appears to be a bug in the following line:
jQuery(this).css({
‘position’: ‘relative’,
});
There is an extra comma after ‘relative’; change the line to read as follows by removing the comma and the script should now work in IE7.
jQuery(this).css({
‘position’: ‘relative’
});
Hi Art Gola,
Thanks a lot for the valuable feedback. Will certainly make the changes and commit.
Regards,
GeekTantra
hi, I’m unable to use the script in jquery 1.4.3 as the rest of our site, I’ve tried previous versions and it does work. 🙁
what’s changed, how can I make this compatible.
Thanks in advance!
Wasn’t working for me either – was staying hidden. Fixed by going to line 20:
change “display:none;” to “display: block; opacity: 0;”
Dunno if that was just my implementation or the latest jquery changing things
[…] has been used, with a few plugins for the menu, and scroll behaviour, and the also the form submits via […]
I have used this menu on one of my websites..thanks!
Michael
Thanks for sharing…
I’ve also created a lavalamp menu using Drupal module which can be view here http://www.victheme.com/demo_product/7
if it’s Okay and welcome for any review or comments:)
Hi there,
this plugin doesn’t seem to work with jQuery 1.7.1
Any chance to get it to work again?
Thanks!
it doesn’t work with jquery-1.7.1.min.js.
But thanx for sharing.
It works with 1.7.2
Few bugs regarding highlightonClick
but are easily fixable
Care to share these issues, or perhaps add them to the Issue Tracker at http://code.google.com/p/jquery-sliding-menu/issues/list so that others can benefit?
For those of you struggling with making this work with later versions of jQuery (beyond 1.4.2) add this line AFTER:
var h = jQuery(this).outerHeight();
/** new line **/
jQuery(this).parents(“ul:first”).find(“.” + options.backgroundClass).css({‘display’: ‘block’});
your hover function should look like this:
jQuery(this).find(“li a”).hover(function () {
var t = jQuery(this).position().top;
var l = jQuery(this).position().left;
var w = jQuery(this).outerWidth();
var h = jQuery(this).outerHeight();
/** make sure that the item is visible **/
jQuery(this).parents(“ul:first”).find(“.” + options.backgroundClass).css({‘display’: ‘block’});
jQuery(this).parents(“ul:first”).find(“.”+options.backgroundClass).stop().animate({
opacity: options.initialOpacity, top: t, left: l, width: w, height: h
}, options.slideTime, options.easing, options.callback );
}, function(){
if(options.highlightOnClick){
jQuery(this).parents(“ul:first”).find(“.”+options.backgroundClass).stop().animate({
opacity: “1”,
top: options.initial_top,
left: options.initial_left
}, 500);
}else {
jQuery(this).parents(“ul:first”).find(“.”+options.backgroundClass).stop().animate({
opacity: “0”
}, 500);
}
});
Your article helped me a lot, is there any more related content? Thanks!
Преимущества:
Вы можете купить товары категории «Промышленные подшипники» гипермаркетах нашей сети или оформить заказ на официальном сайте Лемана ПРО:
Упорные: для восприятия осевых нагрузок (шариковые упорные, роликовые упорные).
– уплотнения, сальники, армированные манжеты SKF, Dichtomatik, NQK;
Грузоподъемность:
Материалы:
With havin so much content and articles do you ever run into any
problems of plagorism or copyright violation? My website
has a lot of completely unique content I’ve either written myself or
outsourced but it looks like a lot of it is popping
it up all over the web without my agreement. Do you know any ways to help protect against content from being ripped off?
I’d definitely appreciate it.
После подписания договора фирма-изготовитель приступает к созданию мебели https://mebel-er.ru/portfolios/myagkaya-mebel
Точность под пространство
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me. https://accounts.binance.bh/fr-AF/register?ref=JHQQKNKN
Your article helped me a lot, is there any more related content? Thanks!
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article. https://www.binance.com/register?ref=IHJUI7TF
My partner and I stumbled over here by a different web address and thought I
might as well check things out. I like what I see so now i
am following you. Look forward to looking into your web page
yet again.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Your article helped me a lot, is there any more related content? Thanks!
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me? https://accounts.binance.com/register/person?ref=GGYHGRE
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article. https://accounts.binance.bh/register/person?ref=IHJUI7TF
Your point of view caught my eye and was very interesting. Thanks. I have a question for you. https://accounts.binance.info/register/person?ref=IXBIAFVY
Как происходит установка умного замка MyLock
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
газовое оборудование;
Гарантия и сервисная поддержка
Проверьте наличие сертификатов, маркировки и гарантий https://zapchastikam.ru/zapchasti-kamaz/ehlektrooborudovanie/fara-protivotumannaya-zheltaya-fg152-analog-5320-3743010
кабины и подвески;
двигатели в сборе;
если сроки ремонта ограничены, можно выделить те компоненты, которые есть в наличии;
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you. https://www.binance.bh/register?ref=JW3W4Y3A
I tried the Lavalamp code and the hover underline slides nicely, but that extra jQuery delay feels unnecessary.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you. https://accounts.binance.bh/register/person?ref=W49FLGDN
Those .animate() calls for the lamp effect are slick, but the hardcoded width will bite you on responsive sites. Just swap the pixel width for a percentage and you’re golden.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
I tried the demo tiff to jpg online and the sliding background is slick, but the default slideSpeed = 1 feels a bit snappy. Setting slideSpeed to 0.5 makes the menu feel way smoother.
Man, this brings me back to the golden era of web design. I remember using a similar effect back in the day, so check out my own take on it cookie clicker unblocked at school if you want to see how it holds up now.
This is actually cleaner than the lavalamp effect, but I’m still trying to figure out how to set the initialOpacity to something other than 1. hidden grimoire idle game