i have couple of issues website: http://niclamarino.altervista.org/layouts/beeline/5.html
- whenever click on menu links, screen "jumps", showing 0.2 seconds screen , working properly.
- in lightbox section (characters section), lightbox opens after scrolling down bottom of page.
how can solve these problems? not jquery programmer @ all! thanks!
your question
line $('a[href*="#"]:not([href="#"])').click(function() {
makes site scroll. says take effect in tag # in beginning of href.
so if want limit effect add #menu $('#menu a[href*="#"]:not([href="#"])').click(function() {
wich id thw div wrapping menu affects link inside div
your script smooth scroll on menu still has glitch, should in google
other things noticed , may cause other issues
loading 2 different version of jquery. delete one. if keep jquery 2x here snippet smoothscroll
$('#menu a[href*="#"]:not([href="#"])').on('click',function (e) { e.preventdefault(); var target = this.hash; $target = $(target); $('html, body').stop().animate({ 'scrolltop': $target.offset().top }, 800, 'swing'); });
place scripts @ end, before closing body or before closing head
you don't have closing tag head, body nor html
css should external
Comments
Post a Comment