You must specify the quotation mark character correctly - " "
If you copy from the forum and paste it into the bubble editor, the quotes will not be correct
Just delete them and re-install them in the editor


You must specify the quotation mark character correctly - " "
If you copy from the forum and paste it into the bubble editor, the quotes will not be correct
Just delete them and re-install them in the editor


!!! SOLVED - Attached demo project
Test it out - Bubble | No-code apps
demo builder - Scroll to Element JS | Bubble Editor
Requirements:
Scroll to specific element script below:
var parentElement = document.getElementById(“scroller”);
var specificChildElement = document.getElementById(“scrolling_to_element”);
specificChildElement.scrollIntoView({ behavior: ‘smooth’, block: ‘center’ });
Scroll to top script below:
var divElement = document.getElementById(“scroller”);
divElement.scroll({
top: 0, behavior: ‘smooth’
});
Hey, thank you for the nice instructions and the solution. Could you make the demo builder publicly accessable please? Currently we do not have permission to view the app.
Thank you!
Should be good now
I tried fixing the demo view but something about a banner I cant figure out but the editor is good to go.
It worked like a charm. Thanks for sharing! ![]()