Site logo

Archived topic

Smooth Scroll not working with GenerateBlocks

16 replies · Started by George on April 28, 2020

Viewing posts 1–15 of 17

I have trouble making the smooth scroll work (I have obviously activated it). Using GenerateBlocks, I insert a GB button and set its class to smooth-scroll. I also set its link to #album. Further down the page, I have a headline with an Element ID of album. While viewing the page and clicking on the button, the page jumps to the headline element but without smooth scroll.

Inspecting the code of the button code:

<a class="gb-button gb-button-c18b5f49 smooth-scroll" href="#album"><span class="button-text">Play now</span></a>

and the headline
<h3 id="album" class="gb-headline gb-headline-b6413a82">You are your only limit</h3>

What is the problem?

Hi there,

can you provide a link to a page where we can see the issue?

Interested also.

I've updated the original thread with a link. The PLAY NOW button at the top has a class of smooth-scroll linking to #album. The container underneath has an element ID of album.

Also, using the latest GB beta 4.

Seems to be working for me in Chrome and Firefox. Did you get it fixed?

No, I didn't touch. It doesn't work for me! Tried in Firefox and Chrome. In Private and Incognito windows respectively with addons disabled! It jumps to the section without smooth scroll. No console errors either.

It works on my Android phone, though! And my old Ipad 2 on Safari. Also works on Edge! Not working in Opera.

No, exatly the same behavior. Works on Edge and Blisk browser on desktop and my Android phone.

Does not work on Firefox, Chrome, Opera on Desktop.

I am on Windows 10 on a laptop.

So it seems there's something up with your computer and the smooth scroll library we're using: https://github.com/cferdinandi/smooth-scroll

Looks like they've just archived it in favor of using the new built-in CSS method.

Have you tried on another computer?

No access to another computer now, I will try tomorrow. But the CSS method worked but just for Firefox. It still doesn't work on Chrome and Opera. I will let you know once I test on another computer tomorrow!

Sounds good, thanks!

Awesome! Glad it's working now :)

This archived topic is closed to new replies.