-
AuthorPosts
-
August 27, 2015 at 5:24 pm #494345
Hei Guys,
Oh I have a big selfcustomiced Enfold. So actually i fgute out if i can cnge he smooth scroll from scrolling the body into scrolling my own wrapper or the #main content.
I took a look into the avia.js and couldn´t find it easily.
Can someone give me a hint or is it at least not possibile to do?August 27, 2015 at 5:47 pm #494368Hi Rafíyel!
Not really sure I understand what your trying to do but if your looking for the script that controls the smooth scrolling then you can find it around line 90 in the /enfold/js/avia.js file.
Best regards,
ElliottAugust 27, 2015 at 5:52 pm #494370SO yes this is what I found:
$.avia_utilities.avia_ajax_call = function(container) { if(typeof container == 'undefined'){ container = 'body';}; $('a.avianolink').on('click', function(e){ e.preventDefault(); }); $('a.aviablank').attr('target', '_blank'); //activates the prettyphoto lightbox $(container).avia_activate_lightbox(); //scrollspy for main menu. must be located before smoothscrolling if($.fn.avia_scrollspy) { if(container == 'body') { $('body').avia_scrollspy({target:'.main_menu .menu li > a'}); } else { $('body').avia_scrollspy('refresh'); } } //smooth scrooling if($.fn.avia_smoothscroll) $('a[href*=#]', container).avia_smoothscroll(container); avia_small_fixes(container); avia_hover_effect(container); avia_iframe_fix(container); //activate html5 video player if($.fn.avia_html5_activation && $.fn.mediaelementplayer) $(".avia_video, .avia_audio", container).avia_html5_activation({ratio:'16:9'}); }
The Scroll is controlling the body //
can I let it control my div with the ID= #wrapper ??
August 28, 2015 at 3:21 pm #494873Hey!
On this line,
$('body').avia_scrollspy({target:'.main_menu .menu li > a'});
You could copy it and add it beneath again to change where you want to target.
$('body').avia_scrollspy({target:'.main_menu .menu li > a'}); $('body').avia_scrollspy({target:'.customLink'});
Best regards,
Elliott -
AuthorPosts
- You must be logged in to reply to this topic.