Smooth scroll for a button addon - Forum | JoomShaper
Staff replied SP Page Builder

Smooth scroll for a button addon

Asked by How 4 years ago Last activity 4 years ago

Hello, I'm trying to add data-scroll-to="true" to href generated for button by Button and button Group addons, but it doesn't work. I've tried to add data-scroll-to="true" into /components/com_sppagebuilder/addons/button/site.php but have some issue where exactly should I put it.

Could You give some tip?

3 replies

How Asked this

LOL I just add in CSS:

html {
scroll-behavior: smooth;
}

Thanx

Rashida Rahman Staff

Hello,

Yes, I use this sometimes too.

Glad that you have made it:)

Best Regards

Log in to reply.