No Smooth Scrolling Elementor
-
Hi, i’ve a strage problem: The scrolling effect works well and smooth in the Elementor Editor, but when I try it from the official link of the website the scrolling is not good, linear (no increasing speed effect) and a bit lagging. Could you help me please?
-
This topic was modified 5 years, 4 months ago by
lorenz23.
-
This topic was modified 5 years, 4 months ago by
-
Hi,
I can’t really help unless I see your page. Make sure you’ve enabled “Prevent other scripts from handling pluginβs links” option in plugin settings. If you can send me your site/page URL I’d probably be able to help.
Yes, sure:
https://zannabiancaambulatoriovr.altervista.orgTry to click on “Bio” menu link, the other links is not setted yet.
-
This reply was modified 5 years, 4 months ago by
lorenz23.
There’s other scripts trying to scroll the page (in addition to page scroll to id). Try this:
Go to plugin settings and remove the value you’ve set in “Highlight selector(s)” option. Save changes and let me know so I can check it.
Value removed, highlight selector now is space.
There’s another script in your theme that also scrolls the page:
wp-content/themes/nt-honshi/js/scripts.jsI think that this script conflicts with “Page scroll to id” because they both try to do the same thing. Is there a way to disable your theme’s smooth scrolling feature?
Unfortunately I don’t see any options to disable smooth scroll in the theme option. is it possibile to disable it manually, modifying the scripts.js?
Try this:
Edit
scripts.jsand comment out the lines from 229 to 245, i.e. change this:var scroll = new SmoothScroll('a[href*="#"]', { // Selectors topOnEmptyHash: true, // Scroll to the top of the page for links with href="#" // Speed & Duration speed: 800, // Integer. Amount of time in milliseconds it should take to scroll 1000px speedAsDuration: false, // If true, use speed as the total duration of the scroll animation durationMax: null, // Integer. The maximum amount of time the scroll animation should take durationMin: null, // Integer. The minimum amount of time the scroll animation should take clip: true, // If true, adjust scroll distance to prevent abrupt stops near the bottom of the page offset: navcustomoffset, easing: 'easeInOutCubic', // History updateURL: true, // Update the URL on scroll popstate: true, // Animate scrolling with the forward/backward browser buttons (requires updateURL to be true) // Custom Events emitEvents: true // Emit custom events });to:
/* var scroll = new SmoothScroll('a[href*="#"]', { // Selectors topOnEmptyHash: true, // Scroll to the top of the page for links with href="#" // Speed & Duration speed: 800, // Integer. Amount of time in milliseconds it should take to scroll 1000px speedAsDuration: false, // If true, use speed as the total duration of the scroll animation durationMax: null, // Integer. The maximum amount of time the scroll animation should take durationMin: null, // Integer. The minimum amount of time the scroll animation should take clip: true, // If true, adjust scroll distance to prevent abrupt stops near the bottom of the page offset: navcustomoffset, easing: 'easeInOutCubic', // History updateURL: true, // Update the URL on scroll popstate: true, // Animate scrolling with the forward/backward browser buttons (requires updateURL to be true) // Custom Events emitEvents: true // Emit custom events }); */Let me know
I commented the lines but I don’t see changes in the scroll effect
The changes you made do not seem to be applied in the frontend (when I inspect the script, the code is not commented). Maybe you need to clear cache?
Cache cleared, but still don’t working well.
Ok. In plugin settings change “Scroll type/easing” option to
easeInOutQuintand let me know.Changed setting and cleared the cache..no improvement π
I notice that now, in the Elementor Editor, clicking the “bio” link there isn’t any type of scroll, like the link is inactive.-
This reply was modified 5 years, 4 months ago by
lorenz23.
Yes. Try the following and let me know:
Edit
...wp-content/themes/nt-honshi/js/plugins.jsand comment out line 12 (it’s a single big line).
Save the file and let me know.
Also, on the same file (plugins.js) try commenting out the lines from 118 to 124 (the jQuery Easing plugin).
I commented line 12 and from 118 to 124 and now it’s visibile the effect (slow start and increasing speed) but still lagging. Maybe near the solution… π
-
This reply was modified 5 years, 4 months ago by
The topic ‘No Smooth Scrolling Elementor’ is closed to new replies.